That's what I thought, but I've been experimenting in Cold Fusion and I'm
not getting the right date....

The number seems to be off by approximately 287 minutes.
To get the right result (within a few seconds), I used:

<CFSET Now=1018060729>
<CFSET TheDate=DateAdd("s", now, "01/01/1970 00:00:00")>  /// Add this 
number of seconds to Midnight, 1/1/70
<CFSET TheDate=DateAdd("n", -287, TheDate)> /// This subtracts 287 minutes 
from the date

<CFOUTPUT>#now# = 
#LSDateFormat(TheDate,"mm/dd/yyyy")#  #LSTimeFormat(TheDate,"hh:mm:ss")# 
</CFOUTPUT>

This returns the right value within about a one minute timespan.

If it is useful for anyone, help yourself!

And thanks for the quick response, Mike!

- Chris

At 09:36 PM 4/5/2002, you wrote:
>The number of seconds since Jan 1, 1970 00:00:00 and the last login?
>
>Mike
>
>----- Original Message -----
>From: "Christopher Ulrich" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, April 05, 2002 9:01 PM
>Subject: [IMail Forum] Registry Value: LastLogin -- what is stored in this
>value?
>
>
> > In the registry under a POP account there is a key
> > called "LastLogin" with a cryptic number...
> >
> > For example, a login today shows: 1018033109
> >
> > Does anyone know the significance of this number?  How to decode it?
> >
> > Thanks
> >
> > Chris
> >
> >
> >
> > Please visit http://www.ipswitch.com/support/mailing-lists.html
> > to be removed from this list.
> >
> > An Archive of this list is available at:
> > http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> >
> > Please visit the Knowledge Base for answers to frequently asked
> > questions:  http://www.ipswitch.com/support/IMail/
> >
>
>
>Please visit http://www.ipswitch.com/support/mailing-lists.html
>to be removed from this list.
>
>An Archive of this list is available at:
>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>
>Please visit the Knowledge Base for answers to frequently asked
>questions:  http://www.ipswitch.com/support/IMail/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/

Reply via email to