[02 Jan 2009] GetWeekday

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
GMKai
Posts: 160
Joined: Mon Feb 15, 2010 10:58 am

[02 Jan 2009] GetWeekday

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on 02 Jan 2009 18:42:50 +0000

Hello,

as of now "GetWeekday() returns the Daystring of the current day e.g. Friday.

1. Would it be possible to change the function to accept a given date as a paremeter?

2. As the result is string depending on the usersetting would it be possible to return a number from 1 - 7 for each weekday?

Thank you and kind regards Kai
User avatar
airsoftsoftwair
Posts: 5915
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[09 Jan 2009] Re: GetWeekday

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 09 Jan 2009 01:09:03 +0100
Hello,

as of now "GetWeekday() returns the Daystring of the current day e.g. Friday.

1. Would it be possible to change the function to accept a given date as a paremeter? 2. As the result is string depending on the usersetting would it be possible to return a number from 1 - 7 for each weekday?
Hmm, not likely. But you can easily implement this on your own. Calculating a weekday from a given date shouldn't be so difficult... I bet there are lots of example source codes for this stuff available via Google.
User avatar
lazi
Posts: 650
Joined: Thu Feb 24, 2011 11:08 pm

[11 Jan 2009] Re: GetWeekday

Post by lazi »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 11 Jan 2009 14:58:40 +0100

On Aminet there is a date.library and it has a very good guide about the different date systems AFAIR.

http://aminet.net/package/util/libs/DateLib
Locked