Page 1 of 1

[Hour] giving me 24-Hour format?

PostPosted: Fri Aug 18, 2017 1:12 pm
by TMcD
Has anyone had the [Hour] variable give them the 24-Hour format?

For example, right now it's 2:09 p.m. and using [Hour] returns 14.

I thought [Hour] returned 1-12, and only the 24-Hour format should return a 2... ?

I'm on Windows 7. NeoBook 5.8.7

I've never seen this before.

Re: [Hour] giving me 24-Hour format?

PostPosted: Fri Aug 18, 2017 3:10 pm
by Gaev
TMcD:

Has anyone had the [Hour] variable give them the 24-Hour format?
I've never seen this before.

I always thought it would return a value based on the 24 hour format

I just did a quick test on my Windows 10 machine ... at 6:07 p.m, it returned 18 ... NeoBook version is 5.8.6

Re: [Hour] giving me 24-Hour format?

PostPosted: Fri Aug 18, 2017 3:17 pm
by TMcD
Ok, I've stepped away from my computer and will look at the help docs again.

I could have sworn I read the docs correctly, it I've been wrong before :)

Re: [Hour] giving me 24-Hour format?

PostPosted: Fri Aug 18, 2017 4:00 pm
by TMcD
Ok, It's just me, looking at the help docs, I can see where I made an assumption... Then thinking of using it in the past (way back), again I assumed... :lol:

I'm all back on board and moving forward. :)

Thanks

Re: [Hour] giving me 24-Hour format?

PostPosted: Fri Aug 18, 2017 10:32 pm
by HPW
Isn't it the [Time24]?

Regards

Re: [Hour] giving me 24-Hour format?

PostPosted: Sat Aug 19, 2017 6:19 pm
by TMcD
HPW wrote:Isn't it the [Time24]?

Regards


According to the Help Doc:

[Time]
The current time (H:M:S AM/PM).

[Time24]
The current time in 24-hour format.

[Hour]
The current hour.

I assumed since [Time] has an "H", that [Hour] would give the hour, as in 1-12, but then I realized there is no way to tell if [Hour] (for example) that 3 meant 3am or 3pm, thus the 24 Hour use. 3 = 3am and 15 = 3pm.