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

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
Zryip TheSlug
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 163
Joined: Tue Jan 26, 2010 10:15 pm
Contact:

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

Post by Zryip TheSlug » Sun Apr 05, 2015 10:48 pm

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.
TheSlug
http://www.aslugontheroad.com - Tutorials, demo stacks and plugins for LiveCode
Data Grid Helper - An intuitive interface for building LiveCode's Data Grids
Excel Library- Extends the LiveCode language for controlling MS Excel

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

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

Post by trevordevore » Tue Apr 07, 2015 2:02 pm

Did you enter this in RQCC? If not you should.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

peter-b
Posts: 182
Joined: Thu Nov 20, 2014 2:14 pm
Location: LiveCode Ltd.

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

Post by peter-b » Tue Apr 07, 2015 9:34 pm

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:
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com

Zryip TheSlug
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 163
Joined: Tue Jan 26, 2010 10:15 pm
Contact:

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

Post by Zryip TheSlug » Tue Apr 07, 2015 10:41 pm

@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)
TheSlug
http://www.aslugontheroad.com - Tutorials, demo stacks and plugins for LiveCode
Data Grid Helper - An intuitive interface for building LiveCode's Data Grids
Excel Library- Extends the LiveCode language for controlling MS Excel

Post Reply

Return to “LiveCode Builder”