Brekeke SIP Server Wiki

$date

Get the current date
The default format is “yyyy/MM/dd”

Syntax:
$date
$date( format )
$date( format, timezone )
Parameters:
format – date format
timezone – time zone
Returns:

formatted date

Version Since:

1.0

 

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$date = 2020/06/03

If the date is June 3rd, 2020

$date = [15]$

If the last digit of the day is 1 or 5, i.e. the day of the month is 1,5,11,15, 21, 25, 31.

$date( “MM-dd-yyyy” ) = (.+)

Get the current date with the format “MM-dd-yyyy”.

$date( “yyyy/MM/dd”, " JST" ) = (.+)

Get the current date based on the time zone “JST”.

 

See Also:

$time

Yes No
Suggest Edit