A little more background may be helpful.
I'm getting dates from a real-time system in the form
of ddmmm/hhmm but no year, so I have to figure out the
year based on what month it is as compared to the current
local date. (e.g. If my server date is Jan 1, 2002 03:00:00 and
my real-time system date is 31DEC/0830 which converts to
Dec 31, 2001 08:30:00 etc.)
So I parsed out the dd, mmm, hh, mm, ss and added yyyy for the year.
I tried using the below mentioned CreateDateTime command so that
I can compare my server.datetime.apples to my realtime.datetime.apples.
Please send comments, suggestions and hysterical-rejoinders
to me,
Greg
-----Original Message-----
It looks like these commands all return time in GMT.
<CFSCRIPT>
lsNow = Now();
lsParseNow = ParseDateTime(Now());
lsDateValue1 = ParseDateTime('07/31/2002 8:18:00','STANDARD');
lsDateValue2 = LSParseDateTime('07/31/2002 8:18:00');
lsDateValue3 = CreateDateTime(2002,7,31,8,18,0);
</CFSCRIPT>
What If I don't want to convert my time to GMT?
Produces:
lsNow: current local time.
lsParseNow: +5 hours from current local time.
lsDateValue1: 07/31/2002 3:18:00
lsDateValue2: 07/31/2002 3:18:00
lsDateValue3: 07/31/2002 3:18:00
Why are the commands converting to GMT? If so, based on what? Can I stop
it?
CF 5.0,
OS W2K,
Time Zone US Central: gmt -6
Daylight Savings: gmt -5
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists