DateTime
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-26 10:20 PM
‎2015-08-26
10:20 PM
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-27 02:58 AM
‎2015-08-27
02:58 AM
It is but you will never have a situation when the time is after 2400.
You will only have to look for time less than 0600.
You will only have to look for time less than 0600.
dstr = "" ch = OPEN ("DateTime", "", "%H") !!get hours from date/time add-on n = INPUT (ch, "", "", dstr) CLOSE (ch) n = SPLIT(dstr, "%n", num) !!convert string to number if num < 6 then PRINT "Go to bed!" endifBarry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11