Tuesday, March 2, 2010

Defining UTCDateTime constants

I was always using DateTimeUtil class to set a specific UTCDateTime value:
dateTime = DateTimeUtil::newDateTime(02\03\2010, 17*3600+30*60);

But it appeared that there is an easier way to define UTCDateTime constant:
dateTime = 2010-03-02T17:30:00;

7 comments: