Discussion: Time span literal
Time span literal
Daniel LeuckSat Nov 18 09:36:09 HST 2006
- Previous message: Time span literal
- Next message: Time span literal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]
Hi Jesse, The reason it's setup that way is that xx:xx is extremely ambiguous. It could be minutes and seconds, hours and minutes, a time, etc. When prefixed with a date, its clear that you are dealing with hours and minutes rather than minutes and seconds. One of SDL's design goals is that the literals be clear and unambiguous, even if you don't know the language spec. Dan _____ From: Jesse Weaver [mailto:pianohacker at gmail.com] Sent: Saturday, November 18, 2006 9:18 AM To: SDL_Developers Subject: Time span literal Could we change the time span literal so that it doesn't require seconds, to be consistent with the date/time literal? Or is there a good reason for the difference? -- Jesse ----------- There is a theory which states that if anybody ever discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened. - Douglas Adams, author of Hitchhiker's Guide to the Galaxy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://ml.ikayzo.org/pipermail/sdl-developers/attachments/20061118/4df57567/attachment.htm>
- Previous message: Time span literal
- Next message: Time span literal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]










