Page 1 of 1

com.livecode.date library - Numeric day of a week

Posted: Sun Apr 05, 2015 10:48 pm
by Zryip TheSlug
I'm trying to play with dates in LCB.

For getting the numeric day of the week we have the need of an equivalent to the "convert to dateItems" of LiveCode or a way to get the numeric day.

The local date returned by LCB is a list of 6 elements against 7 for LC. The 7th is the numeric day I need.

Re: com.livecode.date library - Numeric day of a week

Posted: Tue Apr 07, 2015 2:02 pm
by trevordevore
Did you enter this in RQCC? If not you should.

Re: com.livecode.date library - Numeric day of a week

Posted: Tue Apr 07, 2015 9:34 pm
by peter-b
Yes, please file a feature request. It sounds like a useful thing to be able to get hold of!

In the meantime, however, you could just wrap strftime(3) using the LCB foreign function interface, of course... :lol:

Re: com.livecode.date library - Numeric day of a week

Posted: Tue Apr 07, 2015 10:41 pm
by Zryip TheSlug
@trevor:

Done:
http://quality.runrev.com/show_bug.cgi?id=15172

@peter-b

No problem, if you are explaining me how to accomplish this in LC8 DP1 8)