5 ms·
You know, when I write down the times of meetings or flights in my paper notebook with a pencil, it doesn't give me error messages because it doesn't know what
by kragen 17y ago
You know, when I write down the times of meetings or flights in my paper notebook with a pencil, it doesn't give me error messages because it doesn't know what timezone they're in. Sometimes they're in Argentine time, sometimes they're in California time, sometimes they're somewhere else. Sometimes I do write down a timezone because there's the potential for confusion, and other times I don't.
Your comment is a recipe for writing software that is worse than my paper notebook, in the sense that I would prefer to use the paper notebook.
- scott_s 17y agoExcept his comment is about writing a datetime library. An application could provide reasonable defaults.
- kragen 17y agoProviding a default timezone would also be worse than my paper notebook, because it would mean that some of the times I enter would be assigned to the incorrect timezone, which means they'd be assigned to the incorrect absolute time. It's a recipe for automatically falsifying data as soon as it's entered!
- scott_s 17y agoThen your paper notebook is also implicitly incorrect, since you have not recorded complete information anywhere.
- jerf 17y agoYour computer program is free to try to guess your timezone, free to store the fact that it guessed, and show you the guess, and give you a convenient UI for correcting the guess if it gets it wrong, free to offer some preferences to control the way it guesses... but it should never store a raw 11:32 (as a time, not a string) in its memory at any point in the process. That's a recipe for software worse than your paper notebook, because it tries to wake you up at 2:32 am localtime for your meeting. Oops. But in general... computers and ambiguity don't get along. Dealing with that by writing sloppy programs is a recipe for disaster. Sounds like you're not writing down dates anyhow, just chunks of text that you don't expect a computer to interpret. If you do expect it to interpret your date you better have a specific time in mind or it's not going to do the computer any good anyhow.
- kragen 17y agofree to try to guess your timezone, free to store the fact that it guessed, and show you the guess, and give you a convenient UI for correcting the guess if it gets it wrong This is far less convenient than pencil and paper. it tries to wake you up at 2:32 am localtime Yes, in order to instruct the computer to do something at a particular time, you have to reduce it to absolute time (although I think this is best done by storing the local time and the time zone, rather than the absolute time, since the time zone may change between the time I write down the time and the time I use it). But there are lots of times I write down that can be usefully processed without being reduced to absolute time; for example, if I have a bunch of times in the same (unspecified) timezone, I can sort them and compute intervals between them. (...usually.) There's a difference between writing sloppy programs and writing programs that can be successfully used sloppily.
- calambrac 17y agoThen just write your strings-that-represent-timelike-things in your text editor and be done with it. What, exactly, is your point? You think that because you don't need your personal strings to actually denote time, this isn't a problem that ever needs to be addressed precisely and accurately?
- gchpaco 17y agoHaving an implicit timezone for the current position--as iCal does, say, while still allowing you to create events in other timezones--is a UI issue, and not necessarily a bad idea. But storing or ever even computing with "times" without a timezone is meaningless.