Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Time Primitive - Month Error

For general discussion related FlowStone

Time Primitive - Month Error

Postby tiffy » Mon Jan 15, 2018 10:44 am

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 823 times
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Time Primitive - Month Error

Postby Spogg » Mon Jan 15, 2018 10:52 am

Hey thanks for the heads up on that one Tiffy!

Cheers

Spogg
User avatar
Spogg
 
Posts: 3318
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Time Primitive - Month Error

Postby RJHollins » Mon Jan 15, 2018 11:56 am

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-)
RJHollins
 
Posts: 1567
Joined: Thu Mar 08, 2012 7:58 pm

Re: Time Primitive - Month Error

Postby Nubeat7 » Mon Jan 15, 2018 1:06 pm

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.
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna


Return to General

Who is online

Users browsing this forum: No registered users and 48 guests