Well, as I wrote, my understanding is that what you call UTC, is actually
UTC-0 which is, like it or not, a time zone (London time). Adding a UTC-0
API to some framework class would be of limited usability. More
interesting in my eyes would be an API that allows transformation of a
date object to *any* time zone, but YMMV.

T.

>> On 12/13/2010 05:36 PM, Marius Austerschulte wrote:
>> > Hi Alex,
>> > I know that the DateFormat class is for formatting a date. I just
>> > wondered why only the local representation of the date can be
>> formatted,
>> > not the UTC representation.
>>
>> I find what you write confusing. Any time, including the local, can be
>> represented in UTC. Date.getUTCDate and friends provide the current time
>> for a *specific* time zone, namely UTC-0. Is it this you're referring
>> to? Then what you want is a date expressed in this particular time zone.
>>
>
> I want that date being expressed in its UTC representation. A time zone is
> an area on the earth's surface which has a uniform time. This time is
> computed using an offset from UTC. The offset for a time zone may differ
> during the year (e.g. the offset for the time zone of London in winter is
> 0,
> but +1 in summer). So I don't want the time of a certain time zone but the
> universal time, which is UTC.
>
>
>> > It would be nice if you could get a
>> > formatted UTC representation of the date by using a format string like
>> > "dd.MM.yyyy" instead of having to build a date string manually like
>> > d.getUTCDate() + "." + d.getUTCMonth() + ...
>>
>> But that would require date calculation, which, as Alex suggested, the
>> DateFormat class is not about. That would require a completely different
>> class.
>>
>
> Why does it require date calculation? The JavaScript API already provides
> the methods to get the correct date in UTC, so there wouldn't be the need
> for any further date calculation by the DateFormat class. I just want the
> DateFormat.format method (or maybe a potential DateFormat.formatUTC
> method)
> to format that UTC time according to a certain format-string. So from my
> point of view I can't see a big problem with enhancing the DateFormat
> class
> with such a feature.
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d_______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to