Page 1 of 1

Time Primitive - Month Error

Posted: Mon Jan 15, 2018 10:44 am
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.

Re: Time Primitive - Month Error

Posted: Mon Jan 15, 2018 10:52 am
by Spogg
Hey thanks for the heads up on that one Tiffy!

Cheers

Spogg

Re: Time Primitive - Month Error

Posted: Mon Jan 15, 2018 11:56 am
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-)

Re: Time Primitive - Month Error

Posted: Mon Jan 15, 2018 1:06 pm
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.