Source language: Translate to:

[Hour] giving me 24-Hour format?

General questions about NeoBook

Moderator: Neosoft Support

[Hour] giving me 24-Hour format?

Postby TMcD » Fri Aug 18, 2017 1:12 pm

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.
TMcD
 
Posts: 237
Joined: Sun Apr 10, 2005 11:20 am

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

Postby Gaev » Fri Aug 18, 2017 3:10 pm

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
User avatar
Gaev
 
Posts: 3728
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

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

Postby TMcD » Fri Aug 18, 2017 3:17 pm

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 :)
TMcD
 
Posts: 237
Joined: Sun Apr 10, 2005 11:20 am

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

Postby TMcD » Fri Aug 18, 2017 4:00 pm

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
TMcD
 
Posts: 237
Joined: Sun Apr 10, 2005 11:20 am

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

Postby HPW » Fri Aug 18, 2017 10:32 pm

Isn't it the [Time24]?

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2518
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

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

Postby TMcD » Sat Aug 19, 2017 6:19 pm

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.
TMcD
 
Posts: 237
Joined: Sun Apr 10, 2005 11:20 am


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron