Post Reply 
Print TIME and DATE
12-31-2019, 05:52 PM (This post was last modified: 12-31-2019 05:57 PM by Jeff O..)
Post: #6
RE: Print TIME and DATE
(12-31-2019 02:41 PM)Dinamarco Wrote:  ...
I tried but...
Could you answer me?

Sorry I did not see your question sooner, I should have realized that the APPEND function might not be obvious. Thanks to twoweims for answering.

I also realized my code could use some more work. The ATIME and ADATE functions observe or obey the current display mode to some exent, so some FIX commands would be needed to insure a pleasing output. Something like the below gives good results:

CLA
FIX 02
TIME
ATIME
|-" "
DATE
FIX 04
ADATE
PRA

Above provides hours and minutes for the time, for example, if I execute it at this very moment, I get:
12:40 PM 12/31/19

If hours minutes and seconds are preferred, just put a FIX 04 at the beginning and get:
12:40:15 PM 12/31/19

If DMY is preferred:
12:40 PM 31.12.19

If 24 hour time is prefrerred:
12:40 31.12.19

If you want the whole year, replace the FIX 04 with a FIX 06:
12:40 PM 12/31/2019

Dave - My mind is going - I can feel it.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Print TIME and DATE - Dinamarco - 12-29-2019, 07:27 PM
RE: Print TIME and DATE - Jeff O. - 12-30-2019, 06:05 PM
RE: Print TIME and DATE - Dinamarco - 12-31-2019, 02:41 PM
RE: Print TIME and DATE - Jeff O. - 12-31-2019 05:52 PM
RE: Print TIME and DATE - twoweims - 12-31-2019, 03:03 PM
RE: Print TIME and DATE - Dinamarco - 12-31-2019, 03:08 PM
RE: Print TIME and DATE - Sylvain Cote - 12-31-2019, 07:59 PM
RE: Print TIME and DATE - Dinamarco - 12-31-2019, 07:42 PM
RE: Print TIME and DATE - Dinamarco - 12-31-2019, 09:50 PM
RE: Print TIME and DATE - dayd - 01-01-2020, 03:25 PM
RE: Print TIME and DATE - Sylvain Cote - 01-01-2020, 04:54 PM
HP 2225 head - Dinamarco - 01-01-2020, 08:31 PM
RE: Print TIME and DATE - Dinamarco - 01-01-2020, 05:49 PM
RE: Print TIME and DATE - dayd - 01-01-2020, 08:56 PM
RE: Print TIME and DATE - Dinamarco - 01-01-2020, 09:04 PM
RE: Print TIME and DATE - dayd - 01-01-2020, 09:26 PM



User(s) browsing this thread: 1 Guest(s)