Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strftime format used for .julia_history fails on Windows #7182

Closed
visr opened this issue Jun 9, 2014 · 2 comments
Closed

strftime format used for .julia_history fails on Windows #7182

visr opened this issue Jun 9, 2014 · 2 comments

Comments

@visr
Copy link
Contributor

visr commented Jun 9, 2014

Today I downloaded the v0.3-prerelease latest Windows binary and checked out the new .julia_history format as described on the mailing list

I noticed the time not showing up in the file:

# time: 
# mode: julia
    1 + 1

The time functionality is implemented using strftime("%F %T %Z", time()), however this returns an empty string on my system. However the equivalent strftime("%Y-%m-%d %H:%M:%S %Z", time()) does return the correct result. This change would be the easy fix, however I do not understand why the original doesn't work in the first place.

julia> versioninfo()
Julia Version 0.3.0-prerelease+3556
Commit 308139b* (2014-06-08 10:20 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-3360M CPU @ 2.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
  LAPACK: libopenblas
  LIBM: libopenlibm
@StefanKarpinski
Copy link
Member

Some systems probably just don't support the abbreviations. It's easy enough to use the long form.

@visr
Copy link
Contributor Author

visr commented Jun 9, 2014

Understood, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants