Time functions Flashcards
startOfWeek() represents …
Sunday starting the current week at 0h00:00
endOfWeek represents …
Saturday ending the current week at 23h59:59
3 caveats for time functions
They are relative to the time zone of the current user
They take into account the seasonal time shifts
Weeks start on Sunday (not Monday)
syntax for “in 5 days from the current datetime”
+5d
syntax for “10 minutes ago”
-10m
cite 2 login relative time functions and their usage
currentLogin() : the dateTime when my current Jira sessions started
lastLogin() : the dateTime when my previous Jira sessions started
Syntax for “start of day tomorrow” ?
startOfDay(1)
2 possible syntaxes for “start of day 5 days ago”
startOfDay(“-5”)
startOfDay(“-5d”)
syntax for “start of this week (Monday 0:00:00)”
startofWeek(1d)
syntax for “end of this week (Sunday 23:59:59)”
endOfWeek(1d)