Friday, February 28, 2014

Time setting and file.lastModified () strange questions


1 In the system settings app in the native, the time to adjust to future
2 write in their own document management app, the new file on the sd card
3 View file.lastModified () is correct
4.adb reboot
5. Then view file.lastModified () more than the correct time of 8 hours
Note: The log is found throughout the area east of eight, time to adjust to the past will not happen, it is difficult to understand, ah, no means of positioning, which seniors pointing 12. Method creates files created: final File file = new File (filePath);<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
The reply was deleted at the moderator 2011-12-28 10:32:47

Reply:
Dinga own
Reply:
Normal, because we are eight districts in the East, then the system time is GMT time, which is GMT
New files are then calls the default time zone editor java last time, and we are Beijing, eight districts in East
Reply:
reference to the third floor ncuboy045wsq reply:
normal, because we are eight districts in the East, then the system time is GMT time, which is GMT
New files are then calls the default time zone editor java last time, and we are Beijing, eight districts in the East

When viewing before the modification time zone is east eight districts. Look after the restart time zone, or the East eight districts.
Reply:
references, 4th Floor zhlwwj1314 reply:
reference to the third floor ncuboy045wsq reply:

Normal, because we are eight districts in the East, then the system time is GMT time, which is GMT
New files are then calls the default time zone editor java last time, and we are Beijing, eight districts in Eastern

When viewing before the modification time zone is east eight districts. Look after the restart time zone, or the East eight districts.

You can change the time zone in the settings
Reply:
references, 5th Floor ncuboy045wsq reply:
references, 4th Floor zhlwwj1314 reply:

References to the third floor ncuboy045wsq reply:

Normal, because we are eight districts in the East, then the system time is GMT time, which is GMT
New files are then calls the default time zone editor java last time, and we are Beijing, eight districts in Eastern

When viewing before the modification time zone is east eight districts. Look after the restart time zone, or the East eight districts.

You can change the time zone in the settings

My question is around the time zones have not changed, why the modification time into the future, and then create a new file, reboot, lastModified file more than eight hours on?
Before the new file modification time is not the problem,
After the last modification time to the new problem is not the problem.
Reply:
reference to the third floor ncuboy045wsq reply:
normal, because we are eight districts in the East, then the system time is GMT time, which is GMT
New files are then calls the default time zone editor java last time, and we are Beijing, eight districts in the East

The current time zone is already eight districts of the East, but also why the java editor last time time zone default tune it? Virtual machines can also get the current time zone with the default time zone, justified ah? !
Reply:
Do not understand, you use examples illustrate this problem, we might be able to think quickly on the root of the problem
Reply:
reference to the 7th floor zhlwwj1314 reply:
reference to the third floor ncuboy045wsq reply:

Normal, because we are eight districts in the East, then the system time is GMT time, which is GMT
New files are then calls the default time zone editor java last time, and we are Beijing, eight districts in Eastern

The current time zone is already eight districts of the East, why java is also the last time to adjust the time zone default edit it? Virtual machines can also get the current time zone with the default time zone, justified ah? !

This is just a small problem, you do not have too tangled, which with your project needs any conflict, if not, the next time you use the correct time zone as long as you can, in fact, you do not control the time zone, usually displayed with the default time zone time
Reply:
reference to the 9th floor ncuboy045wsq reply:
This is just a small problem, you do not have too tangled, which tell you what the project needs conflict, and if not, The next time you use the correct time zone as long as you can, in fact, when you do not control the area, usually to show time

with the default time zoneI would not have come not tangle it asked. Although this is a small problem, but the test provides a single hanging in my name, resolved not to resolve the leadership can be seen, for me is very important. Brother, do not pull the time zone, the time zone is always correct:
cited landlord zhlwwj1314 replies:
NOTE: Logs are found throughout the eastern time zone eight

file.lastModified () sent 28800000 milliseconds which is eight hours before the restart and get the timestamp after the restart. In the end you know the cause of this problem.
Reply:
reference to the 8th floor yipiao729 reply:
do not understand, you use examples illustrate this problem, we might be able to think quickly on the root of the problem
< / fieldset>
Hello little brother, little brother must not read, do not understand you can ask my brother, my brother give you answers! Thank you!
Reply:
The reply was deleted at the moderator 2011-12-30 10:23:12

Reply:
Post code
Reply:
I ask you this question brothers solved? We also encountered this problem you ~

No comments:

Post a Comment