[SR-Users] How to get Formatted Current TIME (NOT CACHED)
Alvaro Araos
alvaro at voxcore.cl
Tue Jul 31 17:46:20 CEST 2018
Hi,
I answer myself. It was very easy, you just had to use
"transformations".
$dlg_var(start)=$(TS{s.ftime,%Y-%m-%d %H:%M:%S});
Saludos,
ALVARO ARAOS MÉNDEZ
Director de Tecnología en FONOIP
+56 2 2947 9000
alvaro at fonoip.com | www.fonoip.com [1]
Moisés Chacón 46, El Monte, RM
El 28-07-2018 18:45, Alvaro Araos escribió:
> Hi,
>
> If i call to $timef multiple times, always returns the same time string (CACHED), how i get formatted current time??
>
> Example:
>
> $dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS "2018-07-28 18:44:35"
>
> .. some seconds later
> $dlg_var(start)=$timef(%Y-%m-%d %H:%M:%S) // RETURNS THE SAME DATE STRING "2018-07-28 18:44:35"
>
> Saludos,
>
> ALVARO ARAOS MÉNDEZ
> Director de Tecnología en FONOIP
>
> +56 2 2947 9000
> alvaro at fonoip.com | www.fonoip.com [1]
> Moisés Chacón 46, El Monte, RM
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users [2]
Links:
------
[1] http://www.fonoip.com
[2] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180731/fc870d01/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afc1f762.jpeg
Type: image/jpeg
Size: 10362 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180731/fc870d01/attachment.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afc1f762.jpeg
Type: image/jpeg
Size: 10362 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180731/fc870d01/attachment-0001.jpeg>
More information about the sr-users
mailing list