comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » date question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
date question [message #11323] Tue, 24 March 1998 00:00 Go to previous message
Robert Moss is currently offline  Robert Moss
Messages: 74
Registered: February 1996
Member
I need to be able to convert a semi-standard date string, such as
3/24/98 14:22:10.120
into a value that is equal to the number of seconds since 00:00 Sunday
the week of the date in question.

For example, 3/24/98 happens to be a Tuesday, so i need

secs since Sun 00:00 = 10.120 + ( 22 * 60 ) + ( 14 * 60 * 60 ) +
( 2 * 24 * 60 * 60 )

where here ( 2 * 24 * 60 * 60 ) is the number of seconds between
00:00 Sunday and 00:00 Tuesday.

Of course, I'd like a general solution that is intelligent enough to
know what day of the week it is based on the date alone...

Anyone else out there have a "gps_time_week" function handy?


--
Robert M. Moss, Ph.D. - mossrm@texaco.com - FAX (713)954-6911
------------------------------------------------------------ -----
This does not necessarily reflect the opinions of Texaco Inc.
[Message index]
 
Read Message
Read Message
Previous Topic: POLY_FIT 5.0: inaccurate results. use 4.0 if possible.
Next Topic: Re: POLY_FIT backward-compatible solution: Use 4.0.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:29:28 PDT 2025

Total time taken to generate the page: 0.64011 seconds