Top Graphic
Ikayzo.org LogoHomeMissionCriteriaPeopleNews
EnglishJapanese

What's New
SDL
08.11.05 SDL is voted in by the review board.

Ikayzo.org Launch
06.24.05 Ikayzo.org, a global professional open source community is launched!

Beanshell
06.10.05 Beanshell joins BeanShell on the Ikayzo.org project list.
OSS Sites
Other great open source sites
  SourceForge
  CodeHaus
Discussion: Time span literal

Time span literal

Daniel Leuck
Sat Nov 18 10:55:38 HST 2006


> One other thing, though; are date/time literals allowed to be broken up
between lines?

 

No, unless a "\" is used at the end of the line to connect it to the next
line.

 

  _____  

From: Jesse Weaver [mailto:pianohacker at gmail.com] 
Sent: Saturday, November 18, 2006 9:43 AM
To: sdl-developers at ikayzo.org
Subject: Re: Time span literal

 

 

On 11/18/06, Daniel Leuck <dan at ikayzo.com> wrote:

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

 


Ah, gotcha. Thanks for your quick reply. One other thing, though; are
date/time literals allowed to be broken up between lines?

-- 
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/21ff9483/attachment.htm>


Query: [How to search]

Display: Description: Sort: