about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorOGINO Masanori <masanori.ogino@gmail.com>2014-07-03 23:52:43 +0900
committerOGINO Masanori <masanori.ogino@gmail.com>2014-07-04 00:18:30 +0900
commit4530f8b2ef3a44eb976715f95c7bedb4c3905e61 (patch)
tree3c2a2f46f9c2109add3c2272e5de5500336df709 /src/rustllvm/ExecutionEngineWrapper.cpp
parente6c54a12c4d209de9f438b4722657ca381f969a2 (diff)
downloadrust-4530f8b2ef3a44eb976715f95c7bedb4c3905e61.tar.gz
rust-4530f8b2ef3a44eb976715f95c7bedb4c3905e61.zip
Rename ctime to asctime and add *proper* ctime.
In C, `ctime(t)` is equivalent to `asctime(localtime(t))`, so the result
should depend on the local timezone. Current `ctime` is compatible with
`asctime` in C, not `ctime`.

This commit renames `ctime` to `asctime` and adds `ctime` which converts
the time to the local timezone before formatting it.

This commit also fixes the documentation of them. Current documentation
of `ctime` says it returns "a string of the current time." However, it
actually returns a string of the time represented as `self`, not the
time when it is called.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions