[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::fortran

Title:Digital Fortran
Notice:Read notes 1.* for important information
Moderator:QUARK::LIONEL
Created:Thu Jun 01 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1333
Total number of notes:6734

1322.0. "UTC Time Routines" by CSC32::L_WEBER () Fri May 30 1997 19:37

      Customer is running VMS V6.1 on a VAX 6000-630 in a VAXcluster.

	$show log sys$timezone*/system
	"SYS$TIMEZONE_DIFFERENTIAL" = "-14400"

	$show time
	  30-MAY-1997 12:00:36

	$run test.exe   ( code shown below )
	30-MAY-1997 12:00:46.77

      Customer suspects UTC time routines not working properly because
	"The displayed time is the same as the current time.
	 This does not seem correct, I expect to see a time
         offset by 14400 seconds (4 hours)."
  
  ------------------------
	program test
        implicit none
        INCLUDE '($RMSDEF)'
        character*23    timbuf
        integer*4   status,sys$ascutc,timadr64(2)
        integer*4   utctim(4),sys$timcon,sys$bintim,sys$asctim
        status=SYS$ASCTIM (,%descr(timbuf),,)   !Get local time stamp
C         Convert to 64 bit time
        status=SYS$BINTIM (%descr(timbuf),%ref(timadr64)) 
C         Request convert to UTC time
        status=SYS$TIMCON (%ref(timadr64),%ref(utctim),%val(1)) 
C         Convert to ascii time to display
        status=SYS$ASCUTC (,%descr(timbuf),%ref(utctim),) 
        type *,timbuf
        CALL EXIT
        END
  ------------------------

	Regards, Larry Weber
        Customer Support Center - LST

        C970530-2846
T.RTitleUserPersonal
Name
DateLines
1322.1QUARK::LIONELFree advice is worth every centFri May 30 1997 22:334
    This is unrelated to Fortran, other than that Fortran is the language 
    the program is written in.  Ask in VAXAXP::VMSNOTES.
    
    				Steve