rex_date
Introduction
Get system date and time.
Get system date and time.
Usage
There are 2 ways to get date and time:
- use "Expression:Year", "Expression:Month", "Expression:Date", "Expression:Date", "Expression:Day", "Expression:Hours", "Expression:Minutes", "Expression:Seconds", "Expression:Milliseconds" to get current system date and time. (Sample capx)
- Get unix-timestamp by "Expression:UnixTimestamp" first, it is a number. Then use use "Expression:Year(unixtimestamp)", "Expression:Month(unixtimestamp)", "Expression:Date(unixtimestamp)", "Expression:Date(unixtimestamp)", "Expression:Day(unixtimestamp)", "Expression:Hours(unixtimestamp)", "Expression:Minutes(unixtimestamp)", "Expression:Seconds(unixtimestamp)", "Expression:Milliseconds(unixtimestamp)" to get date and time mapped from unixtimestamp. User could save this unixtimestamp value to save date&time. (Sample capx)
Unix-timestamp
Sample capx
"Expression:Date2UnixTimestamp" could transfer date&time to unixtimestamp, it has at least 3 parameters year,month,day.
Sample capx
"Expression:Date2UnixTimestamp" could transfer date&time to unixtimestamp, it has at least 3 parameters year,month,day.
Get delta time by unix-timestamp
Sample capx
Get delta time by subtract two output of "Expression:Date2UnixTimestamp, the unit is milliseconds
Sample capx
Get delta time by subtract two output of "Expression:Date2UnixTimestamp, the unit is milliseconds
Local expression
Sample capx
Get local date expression string by "Expression:LocalExpression". Or "Expression:LocalExpression(unixtimestamp)" to transfer timestamp to local date expression.
Sample capx
Get local date expression string by "Expression:LocalExpression". Or "Expression:LocalExpression(unixtimestamp)" to transfer timestamp to local date expression.
Timer for escaped time
Get escaped time
Sample capx
Sample capx
- Call "Action:Start" to start a timer by recording current time-stamp.
- Get escaped time by "Expression:Timer", in second.
Pause or resume
Call "Action:Pause" or "Action:Resume" to pause or resume the timer.
Call "Action:Pause" or "Action:Resume" to pause or resume the timer.