#9 New Pseudo Variables for Current Date

closed
core (12)
5
2009-09-17
2008-10-13
Anonymous
No

It would be very useful for billing purposes to have a current date pseduo variable (formatted like 'yyyy-mm-dd') for indexing and grouping CDRs (maybe $Df?). The current $Tf and $Ts vars are too granular for this purpose. I'm currently having to calculate this using a database call which is obviously expensive relative to pulling it from a variable.

Discussion

  • is it better to use a formatter rather than adding a single format of a date.
    but maybe it need more effort

     
  • -new PV $time(format) to print time is dynamic formatted time string.
    Format: see "man strftime"

    $time(%A %B %Y) -> Thursday September 2009

     
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> closed