Month
From CometWiki
(Initial Construction of page) |
m (m) |
||
Line 10: | Line 10: | ||
This is a string function which yields the Full name of the month in question. If you assign the result string to a 3 byte variable you may extract the 3 byte month abbreviation. | This is a string function which yields the Full name of the month in question. If you assign the result string to a 3 byte variable you may extract the 3 byte month abbreviation. | ||
- | The CometDate | + | The CometDate functions respect the rules for leap years (i.e., the years 1800 and 1900 were not leap years, but the year 2000 is a leap year). |
The practical range of CometDates is -657071 (01/01/01) to 2994623 (12/31/9999) but dates outside of that range may be usable in some contexts. There is no year 0 AD, The date goes from 1BC to 1AD. | The practical range of CometDates is -657071 (01/01/01) to 2994623 (12/31/9999) but dates outside of that range may be usable in some contexts. There is no year 0 AD, The date goes from 1BC to 1AD. | ||
For a reference of all of the functions associated with CometDates see this page [[CometDates]]. | For a reference of all of the functions associated with CometDates see this page [[CometDates]]. |
Revision as of 22:01, 8 December 2010
MonthFunction -- Part of the CometDate series of functions.
Syntax: Month(CometDate)
Discussion: The CometDate Month function extracts the Month from a CometDate Date Serial Number. CometDates are based on a date of January 1, 1800. CometDates before that date are negative and after are positive. The months extracted are: "January","February","March","April","May","June","July","August","Sepember","October","November","December"
This is a string function which yields the Full name of the month in question. If you assign the result string to a 3 byte variable you may extract the 3 byte month abbreviation.
The CometDate functions respect the rules for leap years (i.e., the years 1800 and 1900 were not leap years, but the year 2000 is a leap year).
The practical range of CometDates is -657071 (01/01/01) to 2994623 (12/31/9999) but dates outside of that range may be usable in some contexts. There is no year 0 AD, The date goes from 1BC to 1AD.
For a reference of all of the functions associated with CometDates see this page CometDates.