Hi, The following command file may help you.
It returns the time in "yyyymmddhhmnss" format.
If you create the command file TIMENOW from the following
text, you can do the following example,
TIMENOW HPTIME
SHOWVAR HPTIME
HPTIME = 20000510144822
IF HPTIME > "20000510144000"
ECHO Its after 2:40pm on 5th May 2000
ENDIF
Regards,
Tad.
USER DEFINED COMMAND FILE: TIMENOW.xxx.xxx
PARM t=_timestamp_, mode=quiet
print !hpfile;end=0
#
# Get ' date&time date&time ' of last access to this cmd file
#
setvar !t rht("00000![finfo(hpfile,'intaccessed')]" ,8) &
+rht("00000![finfo(hpfile,'intaccesstime')]",6) &
+rht("00000![finfo(hpfile,'intaccessed')]" ,8) &
+rht("00000![finfo(hpfile,'intaccesstime')]",6)
#
# If dates are different, use the second date & time
#
if lft(!t,8)<>str(!t,15,8)
setvar !t rht(!t,14)
else
setvar !t lft(!t,14)
endif
if ups("!mode")<>"QUIET"
showvar !t
endif
RETURN
Internet
From: [log in to unmask] on 10/05/2000 12:46 GMT
Pour : HP3000-L
cc :
ccc: Tad BOCHAN
Objet : HELP!!!!!
Hi fellow HP3Kers... I need some help in setting up job so that is executes
with an IF time statement.. My question is what variable do you use for
this?? Do you define your own, or is there a "set" system variable ie; IF
HPTIME <=... Any and all help is much appreciated...
Steve
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
----------------------------------------------------------------------------------------------
This message is confidential; its contents do not constitute a
commitment by BNP Paribas Group* except where provided
for in a written agreement between you and BNP Paribas Group*.
Any unauthorised disclosure, use or dissemination, either
whole or partial, is prohibited. If you are not the intended
recipient of the message, please notify the sender immediately.
*BNP Paribas Group is a trading name of BNP SA and Paribas SA
Ce message est confidentiel; son contenu ne represente en
aucun cas un engagement de la part du groupe BNP Paribas*
sous reserve de tout accord conclu par ecrit entre vous et le
groupe BNP Paribas*. Toute publication, utilisation ou diffusion,
meme partielle, doit etre autorisee prealablement. Si vous n'etes
pas destinataire de ce message, merci d'en avertir immediatement
l'expediteur.
*Le groupe BNP Paribas est le nom commercial utilise par BNP SA et Paribas SA
|