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.

> 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.

T.

------------------------------------------------------------------------------
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