O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SayUnixTime() — Says the specified time in a custom format

Synopsis

    SayUnixTime([unixtime][,[timezone][,format]])

Speaks the specified time according to the specified time zone and format. The arguments are:

unixtime

The time, in seconds, since January 1, 1970. May be negative. Defaults to now.

timezone

The time zone. See /usr/share/zoneinfo/ for a list. Defaults to the machine default.

format

The format in which the time is to be spoken. See voicemail.conf for a list of formats. Defaults to "ABdY 'digits/at' IMp".

Returns 0, or -1 on hangup.

               exten => 123,1,SayUnixTime(,,IMp)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required