Brekeke SIP Server Wiki

$time

Get the current time
The default format is “HH:mm:ss”

Syntax:
$time
$time( format )
$time( format, timezone )
Parameters:

format – time format
timezone – time zone

 

Returns:

formatted time

 

Version Since:

1.0

 

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

 

Example:
$time = 09:26:40

If the current time is 09:26:40

$time = ^0[0-9]:

If the current time is from 0 to 9 o’clock.

$time( “SSSS” ) = [02468]$

If the millisecond is an even number.

$time( “HH:mm:ss”, "PDT" ) = (.+)

Get the current time based on the time zone “PDT”.

 

See Also:

$date
$timeRange 

Yes No
Suggest Edit