Namespace: Consultingwerk
Class 
DateType Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

Purpose: Constructor for the DateType class
Notes: Disallow instance creation



Top Method Summary
Options Name Purpose
+ DATE FirstDayOfMonth (date) Returns the date of the first day of the month relatively to the given date
+ DATE FirstDayOfNextMonth (date) Returns the date of the first day of the next month relatively to the given date
+ DATE FirstDayOfWeek (date) Returns the date of the first day in the given week
+ DATE FirstDayOfYear (date) Returns the date of January 1st relatively to the given date
+ LOGICAL IsLeapYear (date) Returns true when the date of the given date is in a leap year
+ INTEGER IsoWeekDay (date) Returns the week day (1..7) using the ISO 8601 norm used in Germany and most European countries where the week starts with Monday
+ INTEGER LastDayNumberOfMonth (date) Returns the day number of the last day of the month relatively to the given date
+ DATE LastDayOfMonth (date) Returns the date of the last day of the month relatively to the given date
+ DATE LastDayOfWeek (date) Returns the date of the last day in the given week
+ DATE LastDayOfYear (date) Returns the date of December 31st relatively to the given date
+ INTEGER WeekNumber (date) Returns the week number of the given date

Top Constructor Summary
Options Name Purpose
- DateType () Constructor for the DateType class


Method Detail
Top

PUBLIC DATE FirstDayOfMonth (date)

Purpose: Returns the date of the first day of the month relatively to the given date
Notes: When no date is passed in, the current month will be used

Parameters:
pdtDate DATE
The base date
Returns DATE
The date of the first day of the year
Top

PUBLIC DATE FirstDayOfNextMonth (date)

Purpose: Returns the date of the first day of the next month relatively to the given
date
Notes: When no date is passed in, the current month will be used

Parameters:
pdtDate DATE
The base date
Returns DATE
The date of the first day of the year
Top

PUBLIC DATE FirstDayOfWeek (date)

Purpose: Returns the date of the first day in the given week
Notes: Follows the the ISO 8601 norm used in Germany and most European
countries where the week starts with Monday

Parameters:
pdtDate DATE
The base date
Returns DATE
The date of the first day of the week
Top

PUBLIC DATE FirstDayOfYear (date)

Purpose: Returns the date of January 1st relatively to the given date
Notes: When no date is passed in, the current year will be used

Parameters:
pdtDate DATE
The base date
Returns DATE
The date of the first day of the year
Top

PUBLIC LOGICAL IsLeapYear (date)

Purpose: Returns true when the date of the given date is in a leap year
Notes: When no date is passed in, the current month will be used

Parameters:
pdtDate DATE
The base date
Returns LOGICAL
Logical value indicating if the given date is in a leap year
Top

PUBLIC INTEGER IsoWeekDay (date)

Purpose: Returns the week day (1..7) using the ISO 8601 norm used in Germany
and most European countries where the week starts with Monday
Notes: http://en.wikipedia.org/wiki/ISO_week_date

Parameters:
pdtDate DATE
The date to use for the IsoWeekDay calculation
Returns INTEGER
The weekday as a number from 1..7
Top

PUBLIC INTEGER LastDayNumberOfMonth (date)

Purpose: Returns the day number of the last day of the month relatively
to the given date
Notes: When no date is passed in, the current month will be used

Parameters:
pdtDate DATE
The base date
Returns INTEGER
The dya number of the last day of the month
Top

PUBLIC DATE LastDayOfMonth (date)

Purpose: Returns the date of the last day of the month relatively to the given date
Notes: When no date is passed in, the current month will be used

Parameters:
pdtDate DATE
The base date
Returns DATE
The date of the last day of the month
Top

PUBLIC DATE LastDayOfWeek (date)

Purpose: Returns the date of the last day in the given week
Notes: Follows the the ISO 8601 norm used in Germany and most European
countries where the week starts with Monday

Parameters:
pdtDate DATE
The base date
Returns DATE
The date of the last day of the week
Top

PUBLIC DATE LastDayOfYear (date)

Purpose: Returns the date of December 31st relatively to the given date
Notes: When no date is passed in, the current year will be used

Parameters:
pdtDate DATE
The base date
Returns DATE
The date of the first day of the year
Top

PUBLIC INTEGER WeekNumber (date)

Purpose: Returns the week number of the given date
Notes:

Parameters:
pdtDate DATE
The base date
Returns INTEGER
The week number of the given date


Constructor Detail
Top

PRIVATE DateType ()

Purpose: Constructor for the DateType class
Notes: Disallow instance creation



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:58:31