How to get Asterisk DateTime global variable

Hello

I am using C AGI for asterisk development. I am trying to get global variable for knowing current date time that always set by asterisk like other variables (e.g uniqueId,callerId,channel…) or any other way by which date time variable can we know

Thnx

There is a function named STRFTIME.
To see more information about on CLI:
show function STRFTIME
Good Luck.

[quote=“rogergscuall”]There is a function named STRFTIME.
To see more information about on CLI:
show function STRFTIME
Good Luck.[/quote]
I am not concerning about dial plan. i am concerning about C AGI function thats used to get Asterisk time that always set by ASterisk.
u get that time in java be asterisk time event.

But how this can be done in CAGI functions which are used for to get callerId,uniqueId and even for getting time stamps or current date time.

e.g
cagi->AGITool_get_global_variable(“agi_uniqueId”,SomeBuffer)
cagi->AGITool_get_global_variable(“agi_callerId”,SomeBuffer)
so wots the variable for getting time stamp or current date time

cagi->AGITool_get_global_variable(“agi_time”,SomeBuffer) i dont know
u got ?
Regards
Thnx

I use a Python’s packages named py-asterisk for AGI, one of the methods of the script is for the date:
def say_date(self, seconds, escape_digits=’’):
""“agi.say_date(seconds, escape_digits=’’) --> digit
Say a given date, returning early if any of the given DTMF digits are
pressed. The date should be in seconds since the UNIX Epoch (Jan 1, 1970 00:00:00)
”""
Perhaps this helps you??
Good luck

[quote=“rogergscuall”]I use a Python’s packages named py-asterisk for AGI, one of the methods of the script is for the date:
def say_date(self, seconds, escape_digits=’’):
""“agi.say_date(seconds, escape_digits=’’) --> digit
Say a given date, returning early if any of the given DTMF digits are
pressed. The date should be in seconds since the UNIX Epoch (Jan 1, 1970 00:00:00)
”""
Perhaps this helps you??
Good luck[/quote]
This will say given time.
I am required such variable name which returns the asterisk current date time .