Hello All,
I am working on a script for a client of ours and am trying to determine how
to use the LASTLOGIN field in the external database. I know the value is
supposed to be the number of seconds after 1/1/1970 from the archives. But
when I run this calculation I am coming up around 21 hours off.
Here is the VBScript I am using, can anyone tell me why the value is coming
out off?
tmpDormantTime = DateDiff("s",date(), "01/01/1970
00:00:00")-(daystodormant*86400)
The daystodormant is a variable I currently have set to 90 and 86400 is the
number of seconds in a day. Therefore the tmpDormantTime should equal the
seconds for 90 days prior. That was I know if they have logged in within
the past 90 days by comparing the tmpDormantTime to the LASTLOGIN value.
As a side note, I also check the lastlog.in file for POP3 and IMAP
connections, but that is working fine...
Thanks,
Grant Griffith
EI8HTLEGS, A Division of ETC
(812)932-1000
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/