*** GMX Spamverdacht *** unlang time / date comparison

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Sep 19 00:39:32 CEST 2012


On 18 Sep 2012, at 23:05, SkyDiablo <skydiablo at gmx.net> wrote:

> Am 18.09.2012 23:38, schrieb Franks Andy (RLZ) IT Systems Engineer:
>> I’d like to be able to take a date/time from a sql database, use unlang (not a module) to compare it to the current time and make a decision based on the fact that it’s, for example, less or more than 3600 seconds/60 minutes/1 hour etc ago.
>> 
>> 
> welcome in the club: http://freeradius.1045715.n5.nabble.com/account-activate-datetime-tp5715390.html

To answer your formatting question:

https://github.com/alandekok/freeradius-server/blob/master/src/lib/valuepair.c#L691

It's a case of RTFC :)




More information about the Freeradius-Users mailing list