Date Elapsed |
org. helvector. date. ElapsedSummary
createVeryOldDate
Creates on old date by bypassing the date objects restrictions. (You can’t create a date any earlier that 100AD as the date class defaults to the 1900’s when passed a number below 100. To do so you need to define the date as a millisecond value and then pass it to the constructor ) This does the job in the usual way. It looks like the Astrological Calendars used so there is a year 0 and BC dates have a \- in front of them. Parameters
ReturnsA Date object set to the year specified. |
public static var m_in_second: Number
public static var m_in_minute: Number
public static var m_in_hour: Number
public static var m_in_day: Number
public static var m_in_year: Number
public static var days: Array
public static var months: Array
public static var days_in_month: Array
Constructor
function Distance()
public static function m2_seconds( m: Number ):Number
public static function m2_minutes( m: Number ):Number
public static function m2_hours( m: Number ):Number
public static function m2_days( m: Number ):Number
public static function m2_years( m: Number ):Number
public static function m2_years_then_minutes( m: Number ):String
Creates on old date by bypassing the date objects restrictions.
public static function createVeryOldDate( y: Number, BC: String ):Date
Works out if the date is BC.
public static function isBC( d: Date ):Boolean
Calculates the number of days to the end of the year.
public static function daysToEndOfYear( d: Date ):Number
Calculates the elapsed number of full days since the start of the year.
public static function daysToEndOfYearAlt( d: Date ):Number
Calculates the elapsed number of days since the start of the year.
public static function daysSinceStartOfYear( d: Date ):Number
Calculates the elapsed number of days since the start of the year.
public static function daysSinceStartOfYearAlt( d: Date ):Number
Returns the name of the day for the specified date object
public static function getDayName( d: Date ):String
Returns the name of the month in english.
public static function getMonthName( d: Date ):String
Works out if the date is a leap year.
public static function leapYear( d: Date ):Boolean
Returns the number of days in the specified date objects month.
public static function getDaysInMonth( d: Date ):Number
Calculates wether or not the hour of the supplied date object is AM or PM
public static function getAMPM( d: Date ):String
Turns the hour of specified date object to 12 hour format
public static function getTwelveHour( d: Date ):Number