211
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Weekday Function
Function:
Returns the day of the week for a given day number.
Syntax:
weekday(daycount as word) as pl_days_of_week
Returns:
One of pl_days_of_week constants:
1- PL_DOW_MONDAY: Monday.
2- PL_DOW_TUESDAY: Tuesday.
3- PL_DOW_WEDNESDAY: Wednesday.
4- PL_DOW_THURSDAY: Thursday.
5- PL_DOW_FRIDAY: Friday.
6- PL_DOW_SATURDAY: Saturday.
7- PL_DOW_SUNDAY: Sunday.
See Also:
,
,
Part
Description
daycount
Day number. Base date for the day count is 1-JAN-2000
(this is day #0).
Details
---
Examples
dim
w
as
pl_days_of_week
w = weekday(
0
)
' result will be PL_DOW_SATURDAY - the was the day of the
week for the 1st of January 2000.
Year Function
Function:
Returns the year for a given day number.
Syntax:
year(daycount as word) as byte
Returns:
Two last digits of the year (0 means 2000, 1 means 2001,
and so on.)
See Also:
,
Part
Description
211
204
191
192
195
203
203
204
191
211
192
195
203
203