Wednesday, December 5, 2012

Combine Date and Time


static void AvBry_DateTime(Args _args)
{
    utcDatetime _dt1, _dt2;
    ;

    _dt1 = DateTimeUtil::newDateTime(today(), timenow());
   
    _dt2 = DateTimeUtil::newDateTime(today() - 1, timenow());
   
    if (_dt1 < _dt2)
        info("dt1 < dt2");
    else
        info("dt1 > dt2");
}

No comments: