-
Notifications
You must be signed in to change notification settings - Fork 1
Bio Time Expressions
Rajab Davudov edited this page Mar 13, 2019
·
3 revisions
Here is the list of time symbols which can be used in time expressions:
-
sseconds -
mminutes -
hhours -
ddays -
mdcalendar days -
wsweek days -
Mcalendar months -
yyears -
<shift time to the beginning -
>shift time to the end -
-remove interval -
+add interval -
=exact time -
*module time
For example:
-
30d<+9hadd 30 days shift to the beginning of day and add 9 hours -
-3d>minus 3 days and shift to the end of day -
5md<+12h-5mnext calendar 5th day of month and add 12 hours and minus 5 minutes -
-3wd<+3hlast wednesday shift to the beginning of day and add 3 hours -
*5msets to next time divided by 5m for example 0, 5, 10, 15, ... 50, 55
Shifting resets time several time attributes based time expression:
-
sresets only millisecond part -
mresets only second + millisecond part -
hresets only minute + second + millisecond part -
dresets only hour + minute + second + millisecond part -
mdresets only hour + minute + second + millisecond part -
wdresets only hour + minute + second + millisecond part -
Mresets only day + hour + minute + second + millisecond part -
yresets only month + day + hour + minute + second + millisecond part
For example:
-
0h<will set only minutes and seconds to 0 -
0d<will set only hour minutes and seconds to 0 -
0d<+1h>will set hours and minutes to 0 and will ad 1 hour and shift to 59 min and 59 seconds