$time compare

Allows you to compare two DateTime objects.


Example

Running this code will compare Date Time 1 "08/16/2015 22:27:45" to Date Time 2 "09/16/2015 22:27:45". As shown in the UBot browser, Date Time 1 is earlier than Date Time 2.

load html($plugin function("Time and Date Automation.dll", "$time compare", "08/16/2015 22:27:45", "09/16/2015 22:27:45", "UBOT (MM/dd/yyyy HH:mm:ss)"))

Running this code will compare Date Time 1 "08/16/2015 22:27:45" to Date Time 2 " 08/16/2015 22:27:45". As shown in the UBot browser, Date Time 1 is the same as Date Time 2.

load html($plugin function("Time and Date Automation.dll", "$time compare", "08/16/2015 22:27:45", "08/16/2015 22:27:45", "UBOT (MM/dd/yyyy HH:mm:ss)"))

Running this code will compare Date Time 1 " 09/16/2015 22:27:45" to Date Time 2 " 08/16/2015 22:27:45". As shown in the UBot browser, Date Time 1 is later than Date Time 2.

load html($plugin function("Time and Date Automation.dll", "$time compare", "09/16/2015 22:27:45", "08/16/2015 22:27:45", "UBOT (MM/dd/yyyy HH:mm:ss)"))

Was this helpful?

Next Article

$time converter