-
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:
-
s
seconds -
m
minutes -
h
hours -
d
days -
md
calendar days -
ws
week days -
M
calendar months -
y
years -
<
shift time to the beginning -
>
shift time to the end -
-
remove interval -
+
add interval -
=
exact time -
*
module time
For example:
-
30d<+9h
add 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-5m
next calendar 5th day of month and add 12 hours and minus 5 minutes -
-3wd<+3h
last wednesday shift to the beginning of day and add 3 hours -
*5m
sets to next time divided by 5m for example 0, 5, 10, 15, ... 50, 55
Shifting resets time several time attributes based time expression:
-
s
resets only millisecond part -
m
resets only second + millisecond part -
h
resets only minute + second + millisecond part -
d
resets only hour + minute + second + millisecond part -
md
resets only hour + minute + second + millisecond part -
wd
resets only hour + minute + second + millisecond part -
M
resets only day + hour + minute + second + millisecond part -
y
resets 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