From: Pierre.Bru@spotimage.fr
Subject: Re: Date Calculations in Dec Fortran
Date: 1999/03/02 [thread overview]
Message-ID: <7bgbnu$co4$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36DA2562.D3D02A6E@transtech.net
I one write routines called Read_Date_Time and Write_Date_Time (in Pascal not
in Fortran) that use RTL function:
to read your date:
call lib$init_date_time_context with something like
|!Y4!MN0!D0|!H04!M0!S0!C2| as input fomat in init-string, then call
lib$convert_date_string to convert your date to OpenVMS internal format.
at this point, you can do any date/time computation available in RTL.
to write your computed date:
first call lib$init_date_time_context with |!Y4!MN0!D0|| as init-string but
for output format, then call lib$format_date_time to convert the OpenVMS
internal date format back to ascii string.
feel free to email if you want more info.
Pierre
In article <36DA2562.D3D02A6E@transtech.net>,
Daniel Steinmetz <dani@transtech.net> wrote:
> Does anyone have routines that manipulate dates and would not mind
> sharing them ? I'm interested in subtracting a certain number of days
> from todays date (format YYYYMMDD ) and getting the result in a similar
> format.
>
> Thanks in Advance
>
> Dani Steinmetz
> Dani@transtech.net
>
> System Engineer
> Transtech Systems Inc
> Miami, FL
>
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
prev parent reply other threads:[~1999-03-02 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-01 5:00 Date Calculations in Dec Fortran Daniel Steinmetz
1999-03-01 5:00 ` Herman D. Knoble
1999-03-01 5:00 ` Arne Vajhøj
1999-03-02 5:00 ` Pierre.Bru [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox