Get help using and writing Nisus Writer Pro macros.
loulesko
Posts: 126 Joined: 2008-01-20 11:08:35
Location: California
Contact:
Post
by loulesko » 2023-09-25 11:51:55
Hi there,
Am using the following in a macro:
It returns
0 when it's the noon hour. Which is odd because the macro reference says
The hour on the 12 hour clock, 1-12 inclusive .
Returns
12 as expected
Thanks
Lou
phspaelti
Posts: 1344 Joined: 2007-02-07 00:58:12
Location: Japan
Post
by phspaelti » 2023-09-25 15:52:01
Methinks the "inclusive" is misleading. ".hour12" returns a value in the range 0-11, which frankly is the desired behavior.
".hour" will return a value in the 0-23 range, so 12PM will return 12 while 12AM will return 0.
philip
loulesko
Posts: 126 Joined: 2008-01-20 11:08:35
Location: California
Contact:
Post
by loulesko » 2023-09-26 08:30:21
Phillip
Now I get get, it thanks. Always good to hear from you.
Lou