Thursday, June 23, 2011

Find the difference between two Times

Hi,

Using below code find the difference between two time values,

static void DateTimeDifference(Args _args)
{
    UTCDateTime abcdatetime;
    ;
    sleep(5000);
    info(strfmt("Difference: %1",DateTimeUtil::getDifference(DateTimeUtil::getSystemDateTime(),abcdatetime)));
}

No comments:

Post a Comment