Time Primitive - Month Error

For general discussion related FlowStone
Post Reply
User avatar
tiffy
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Time Primitive - Month Error

Post by tiffy »

NOTE:

The Time Primitive display at its output terminal that the Month January begin at Index 0, but in fact its output terminal produces a numeral 1 for the Index of January.

Therefore, if you construct your Month Array with Jan, Feb, Mar, Apr, May...then the String GetAt will never find January which is in fact at Index 0 in the array, whilst the Index from the Time Primitive output terminal is a numeral 1 for January...thus, all the Months will be 1 Month ahead of time with respect to the Array Index.

You will therefore have to take this into account and make the necessary correction between Time Primitive output terminal and the String GetAt Input Index terminal - see attached Schematic.
Attachments
Time Module (Error Correction).fsm
(1.34 KiB) Downloaded 924 times
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Time Primitive - Month Error

Post by Spogg »

Hey thanks for the heads up on that one Tiffy!

Cheers

Spogg
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Time Primitive - Month Error

Post by RJHollins »

Interesting find Tiffy.

For my last project, I used RUBY

Code: Select all

Time.now.strftime("%b")


I just check it ... was correct.

still ... thanks for the heads-up correction.
8-)
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Time Primitive - Month Error

Post by Nubeat7 »

i'm sure its intended to be 1-12 which is logical when using just numbers to show the date, like this you can use the output without any correction.

anyways the descriptions on the module needs to be corrected.
Post Reply