Learn how to use and combine different timespan functions in APL
Function Name | Description |
---|---|
ago() | Subtracts the given timespan from the current UTC clock time. |
datetime_add() | Calculates a new datetime from a specified datepart multiplied by a specified amount, added to a specified datetime. |
datetime_part() | Extracts the requested date part as an integer value. |
datetime_diff() | Calculates calendarian difference between two datetime values. |
dayofmonth() | Returns the integer number representing the day number of the given month |
dayofweek() | Returns the integer number of days since the preceding Sunday, as a timespan. |
dayofyear() | Returns the integer number represents the day number of the given year. |
endofyear() | Returns the end of the year containing the date |
getmonth() | Get the month number (1-12) from a datetime. |
getyear() | Returns the year part of the datetime argument. |
hourofday() | Returns the integer number representing the hour number of the given date |
endofday() | Returns the end of the day containing the date |
now() | Returns the current UTC clock time, optionally offset by a given timespan. |
endofmonth() | Returns the end of the month containing the date |
endofweek() | Returns the end of the week containing the date. |
monthofyear() | Returns the integer number represents the month number of the given year. |
startofday() | Returns the start of the day containing the date |
startofmonth() | Returns the start of the month containing the date |
startofweek() | Returns the start of the week containing the date |
startofyear() | Returns the start of the year containing the date |
a_date
: A datetime
timespan
since midnight at the beginning of the preceding Sunday, rounded down to an integer number of days.
a_date
: A datetime.
day number
of the given year.
datetime
argument.
date
: A datetime.