Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Year 2038

by ruoso (Curate)
on Dec 30, 2005 at 14:29 UTC ( [id://519996]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Year 2038
in thread Year 2038

I disagree that your example could cause HUGE confusion. In fact, I think that your proposal can cause HUGE confusion! If different users in the accounts department in different local timezones entered several transactions in the same day, how can you make sense of what happened in what order unless the times are all presented in the same time zone (be it the local timezone for you, the observer, UTC, or any other chosen timezone)?

I agree, in part, to what you said. It is needed to show the complete information to the user, we need one step further in the user interfaces. The display of dates should include the information about the timezone and should provide a way to the user easily see that time in his timezone.

I mean, in some activities, the day of the year represents much information (like, it's on this fiscal year or the next?) but you still want to store the hour and the timezone, right?...

What about triggered events that automatically occured on the account. What timezone should they be presented in, if not the same, normalized, timezone as everything else?

This is, certainly, a problem. But you can still do some tricks, like, setting the timezone to UTC for system events and always you have UTC display as the local timezone. And setting to WET when the date is triggered by a user on the GMT timezone, for example.

On the other hand when using a time format like ISO8601 you can do arithmetic on the date portion (carefully, because of leap years and such), but adding one to the hour may yield an impossible, ambiguous, or duplicate time.

That's the reason you should use a module like DateTime to do such arithmetics. It takes care about this type of issues. And if it doesn't for some issues, that's the place to implement such things...

daniel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://519996]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found