I heard that time in linux use kernel time. However android use UTC
time depends
 on country.

2013년 2월 5일 화요일에 T. Webster님이 작성:

> This question relates to Unix-like-systems and C. If you don't happen to
> have an answer, you can still help by making your best guess at you might
> still figure out the answer to a problem like this.
>
> Steps to reproduce:
>
> 1. Create a new file on Android 4.2.1 at `/sdcard/file.txt`. From `adb
> shell`, note the time it was created by calling `date` and also
> double-check with `ls -l` on the file.
> 2. Copy-paste code described from the 
> page<http://www.kernel.org/doc/man-pages/online/pages/man2/stat.2.html>for 
> `stat`
> 3. Compile then run the program from adb shell with input argument for
> `/sdcard/file.txt`.
>
> The output from this `<sys/stat.h>` program consistently shows the file is
> **+5 hrs. off** from the time it was actually created (noted at step 1)!
>
> This holds for every "time" field on the `struct stat`. Can someone please
> explain this difference between what Android's `<sys/stat.h>` function says
> and the file's **actual** last modified time?
>
>  --
> --
> unsubscribe: [email protected]<javascript:_e({}, 
> 'cvml',
> 'android-kernel%[email protected]');>
> website: http://groups.google.com/group/android-kernel
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Linux Kernel Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:_e({},
> 'cvml', 'android-kernel%[email protected]');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to