W3C home > Mailing lists > Public > www-forms-editor@w3.org > September 2007

Re: [LC] 7.10.6 The local-date() Function and 7.10.7 The local-dateTime() Function (PR#69)

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Thu, 13 Sep 2007 12:03:15 +0200
To: "Nick Van den Bleeken" <xforms-issues@mn.aptest.com>
Cc: www-forms-editor@w3.org
Message-ID: <op.tyk7jptmsmjzpq@acer3010.satec.es>

> Steven,
> We will add examples to show that now() returns Z time only

Just for the record, I think this is a bad idea. I understand (now) that  
the current text for now() is ambiguous, but I believe the wrong  
interpretation had been chosen to solve that ambiguity. Either way some  
implementations will have to change, so I think changes should be chosen  
on what is best for authors, and I believe that most authors will expect  
now() to return the local time (not UTC), amongst other reasons because  
that is what spreadsheets return for the function now().

I do however agree there is a use case for a function that returns UTC.

Best wishes,

Steven Pemberton

  and add
> examples of
> local-dateTime() showing that the returned result is in the local  
> timezone.
> The difference between now() and local-dateTime() is basically whether  
> or not
> the returned value is just in the zulu timezone or the local timezone.
> Regards,
> Nick Van den Bleeken
>> http://www.w3.org/TR/xforms11/#fn-local-date
>> http://www.w3.org/TR/xforms11/#fn-local-dateTime
>> I don't understand the difference between these and the function now().
>> Please give examples along the lines of "if now() returns "...." then
>> local-DateTime would return "...""
Received on Thursday, 13 September 2007 10:03:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:12 UTC