Sitemap
|
Contact Us
|
Clients
GetMonthLength
Home
|
WebHare Lite
|
Downloads
|
HareScript
|
Websites/CMS
|
Applications
Search for:
in:
All of WebHare.net
HareScript
Websites/CMS
Applications
HareScript
General functions
Base functions
Cryptography APIs
Date and time manipulation
Developers support
Mathematic and floating point utility functions
Money type utility functions
GetMonthLength
Returns the number of days in a specific month in a specific year
Library
wh::datetime.whlib
Syntax
PUBLIC INTEGER FUNCTION GetMonthLength (INTEGER month,INTEGER year)
Parameters
month
The month of which the number of days should be returned. Januari = 1, Februari = 2 etc.
year
The year the month belongs to.
Returns
The total number of days in the month, taking leap years into account.
Example
// Returns the number of days in Februari 1997
INTEGER MonthLength := GetMonthLength(2,1997);
In library 'datetime'
AddDaysToDate
AddMonthsToDate
AddTimeToDate
FormatDateTime
GetCurrentDateTime
GetDatetimeDifference
GetDayCount
GetLanguageDatetimeStrings
GetMonthLength
GetMsecondCount
GetMsecsDifference
GetYearLength
LocalToUTC
MakeDate
MakeDateFromDayCount
MakeDateFromParts
MakeDateFromText
MakeDateTime
MakeDayCount
MakeTime
UnpackDateTime
UTCtoLocal
Top
© Copyright
B-Lex Information Technologies
1999-2005. All rights reserved. Hosted and published by
WebHare
.
About WebHare.NET
.