unlang time / date comparison

Franks Andy (RLZ) IT Systems Engineer Andy.Franks at sath.nhs.uk
Tue Sep 18 23:38:54 CEST 2012


Hi,
  Hopefully a simple question. I've looked around for a while but can't
find the answer to this.
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.
I can't really work out the comparison of dates, or simple mathematical
functions for that matter.
Perhaps I'm missing something obvious - apologies if so, I've not been
using FR for that long.

Thanks as always.
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120918/45560ae2/attachment.html>


More information about the Freeradius-Users mailing list