<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>unlang time / date comparison</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Hi,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri"> Hopefully a simple question. I’ve looked around for a</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">while</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri"> but can’t find the answer to this.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">I’d like to be able to take a date/time from a sql database,</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">use unlang (not a module) to</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">compare it to the current time and make a decision based on the fact that it’s, for example,</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">less or more than 3600 seconds/60 minutes/1 hour etc ago</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri">.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">I can’t really work out the compari</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri">s</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri">on of dates, or</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">simple</FONT></SPAN><SPAN LANG="en-gb"> <FONT FACE="Calibri">mathematical functions</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri"> for that matter.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Perhaps I’m missing something obvious – apologies if so</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri">, I’ve not been using FR for that long.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Thanks as always</FONT></SPAN><SPAN LANG="en-gb"><FONT FACE="Calibri">.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-gb"><FONT FACE="Calibri">Andy</FONT></SPAN><SPAN LANG="en-gb"></SPAN></P>
</BODY>
</HTML>