Datetime
7 posts tagged with "Datetime"
add-days
The add-days action adds days to a given date. It belongs to the datetime category within the data area.
Action Syntax
add-days 123 to $variable
add-days $variable to $variable
add-days 123 to YYYY-MM-DD
add-days $variable to YYYY-MM-DD
Return Value
This function returns a
add-weeks
The add-weeks action adds weeks to a given date. It belongs to the datetime category within the data area.
Action Syntax
add-weeks 123 to $variable
add-weeks $variable to $variable
add-weeks 123 to YYYY-MM-DD
add-weeks $variable to YYYY-MM-DD
Return Value
This function returns a
day-names
The day-names action gets localized day names. It belongs to the datetime category within the data area.
Action Syntax
This action accepts various parameters. See the examples below for usage patterns.
Return Value
This function returns a
$result = day-names
Valid sizes
Examples
// Basic Usage
$dn = day-names
days-between
The days-between action calculate the number of days between two dates. It belongs to the datetime category within the data area.
Action Syntax
days-between $variable and $variable
days-between $variable and YYYY-MM-DD
days-between YYYY-MM-DD and $variable
days-between YYYY-MM-DD and YYYY-MM-DD
Return Value
This function returns a
days-until
The days-until action calculate the days until specified or current date. It belongs to the datetime category within the data area.
Action Syntax
days-until today
days-until YYYY-MM-DD
days-until $variable
Return Value
This function returns a
$result = days-until
Valid sizes
Examples
// Basic Usage
$number = days-until today
month-names
The month-names action gets the localized month names. It belongs to the datetime category within the data area.
Action Syntax
This action accepts various parameters. See the examples below for usage patterns.
Return Value
This function returns a
$result = month-names
Valid sizes
Examples
// Basic Usage
$mn = month-names
sync-time-to-server
The sync-time-to-server action syncs time from Interet server source. It belongs to the datetime category within the data area.
Action Syntax
This action accepts various parameters. See the examples below for usage patterns.
Return Value
This function returns a
$result = sync-time-to-server
Valid sizes
Examples
// Basic Usage
sync-time-to-server