64-bit time in Android NDK

624 views
Skip to first unread message

Oceanblue

unread,
May 2, 2011, 11:41:10 AM5/2/11
to android-ndk
<From $NDK/docs/system/libc/OVERVIEW.html>

time_t:

time_t is 32-bit as defined by the kernel on 32-bit CPUs. A 64-bit
version
would be preferable to avoid the Y2038 bug, but the kernel
maintainers
consider that this is not needed at the moment.

Instead, Bionic provides a <time64.h> header that defines a time64_t
type,
and related functions like mktime64(), localtime64(), etc...

</From $NDK/docs/system/libc/OVERVIEW.html>

I was wondering what exactly the second paragraph of the above quote
mean?

As I understand, 64-bit time is not currently available in Android. So
what does time64_t type & corresponding mktime64(), localtime64() do?

David Turner

unread,
May 2, 2011, 12:17:05 PM5/2/11
to andro...@googlegroups.com
They do the same thing than mktime(), localtime(), etc.. but deal with a 64-bit time64_t value (instead of 32-bit time_t)
 
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Reply all
Reply to author
Forward
0 new messages