Page 540 - Asterisk™: The Future of Telephony
P. 540
m
Returns the permissions mode of the file (as an octal number)
STRFTIME Formats the date and time
STRFTIME([epoch][|[timezone][|format]])
Returns the current date/time in a specified format.
STRFTIME passes the epoch and format arguments directly to the underlying strftime
(3) C library call, so check out that manpage for more information. The timezone pa-
rameter should be the name of a directory/file in /usr/share/zoneinfo (e.g., America/
Chicago or America/New_York).
See Also
STRPTIME()
STRPTIME Converts a string into a date and time
STRPTIME(datetime|timezone|format)
Returns the epoch of the arbitrary date/time string structured as described in the for-
mat.
The purpose of this function is to take a formatted date/time and convert it back into
seconds since the epoch (January 1st, 1970, at midnight GMT), so that you may do
calculations with it, or simply convert it into some other date/time format.
STRPTIME passes the string and format directly to the underlying C library call strptime
(3), so check out that manpage for more information. The timezone parameter should
be the name of a directory/file in /usr/share/zoneinfo (e.g., America/Chicago or America/
New_York).
See Also
STRFTIME()
TIMEOUT Accesses channel timeout values
TIMEOUT(timeouttype)
Gets or sets timeouts on the channel.
The timeouts that can be manipulated are:
absolute
The absolute maximum amount of time permitted for a call. A setting of 0 disables
the timeout.
512 | Appendix E: Asterisk Dialplan Functions