IDateTimeCalendarInfo
- Namespace
- ZCore
INTERFACE IDateTimeCalendarInfo
Properties
DayOfTheYear
Returns the actual day of the year as number between 1..365 or 366
PROPERTY DayOfTheYear : INT
Property Value
- INT
IsLeapYear
Returns TRUE if the actual running year is a leap year, otherwise FALSE
PROPERTY IsLeapYear : BOOL
Property Value
- BOOL
Month
Returns the actual month of the year as DateTimeMonth enumeration This enumeration starts with January as first entry (represented as INT#1)
PROPERTY Month : DateTimeMonth
Property Value
Week
Week number of the year starting with 1 as first week of the year (1-53)
PROPERTY Week : INT
Property Value
- INT
Weekday
Weekday enumeration starting with Sunday as first entry
PROPERTY Weekday : DateTimeWeekday
Property Value
Methods
MonthAsString
Returns the actual month as string depending on the given abbreviation See StringAbbreviationFormat for all possible values and MonthToString function to see how it gets abbreviated
METHOD MonthAsString (
format : StringAbbreviationFormat) : STRING
Inputs
format
StringAbbreviationFormat
Returns
- STRING
WeekdayAsString
Returns the actual weekday as string depending on the given abbreviation See StringAbbreviationFormat for all possible values and WeekdayToString function to see how it gets abbreviated
METHOD WeekdayAsString (
format : StringAbbreviationFormat) : STRING
Inputs
format
StringAbbreviationFormat
Returns
- STRING