Ken Ferguson wrote:
>     struct
> DST   TRUE
> HEALTHY       FALSE
> JULIAN        53880
> LEAPMONTH     FALSE
> MSADV         87.0
> NOW   {ts '2025-06-05 13:24:49'}
> RAW   53880 06-05-25 13:24:49 50 0 0 87.0 UTC(NIST) *
> SUCCESS       TRUE
> 
> Here's what I get when I run your code. You'll see that NOW is getting 
> all horqued up!

in that case:

<cfscript>
raw="53880 06-05-25 13:24:49 50 0 0 87.0 UTC(NIST) *";
tD=listGetAt(raw,2," ");
tT=listGetAt(raw,3," ");
y=listFirst(tD,"-");
m=listGetAt(tD,2,"-");
d=listGetAt(tD,3,"-");
h=listFirst(tT,":");
n=listgetAt(tT,2,":");
s=listgetAt(tT,3,":");
tmpDate=createDateTime(y,m,d,h,n,s); //still suffers from DST rollover
writeoutput("<br>#dateFormat(tmpDate)# #timeFormat(tmpDate)#");
</cfscript>

the NTP might work a bit better (returns a timestamp of UTC seconds since it's 
epoch, 1-jan-1900).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241444
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to