192
Platforms
©2000-2008 Tibbo Technology Inc.
daycount
Day number. Base date for the day count is 1-JAN-2000
(this is day #0).
Details
---
Examples
b = day(
366
)
' result will be 1 -- because day 366 is actually January
1st, 2001.
Daycount Function
Function:
Returns the day number for a given year, month, and
date.
Syntax:
daycount(year as byte, month as byte, date as byte)
as word
Returns:
Day number elapsed since 1-JAN-2000 (this is day #0).
The range is 0-36524.
See Also:
,
,
Part
Description
year
The year is supplied as offset from year 2000 (so, it is 6 for
year 2006). Acceptable year range is 0-99 (2000-2099).
month
1-12 for January-December
date
Date of the month
Details
If any input parameter is illegal (year exceeds 99, month exceeds 12, etc.) this
syscall will return 65535. This error value cannot be confused with an actual valid
day number since the maximum day number recognized by this syscall is
12-DEC-2099 (day number 36524).
Examples
w = daycount(
06
,
10
,
15
)
' result will be 2479 (the serial day number for
October 15th, 2006)
Ddstr Function
Function:
Converts "dot-decimal value" into "dot-decimal string".
Syntax:
ddstr(byref str as string) as string
211
204
191
211
195
203
203