Paket | com.adobe.fiber.runtime.lib |
Klass | public class DateTimeFunc |
Arv | DateTimeFunc Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Metod | Definieras med | ||
---|---|---|---|
createDate(year:int, month:int, day:int, hour:int, minute:int, second:int, millisecond:int = 0):Date [statisk]
Creates a date in the local timezone. | DateTimeFunc | ||
createDateUTC(year:int, month:int, day:int, hour:int, minute:int, second:int, millisecond:int = 0):Date [statisk]
Creates a date in the UTC timezone. | DateTimeFunc | ||
[statisk]
Adds units of time to a date. | DateTimeFunc | ||
[statisk]
Takes two dates and returns -1, 0, or 1 depending on whether the first is smaller, equal or larger than the second. | DateTimeFunc | ||
[statisk]
Takes a String datepart and two Dates and returns an int number of dateparts between the two Dates. | DateTimeFunc | ||
[statisk]
Takes a String datepart and a Date and it returns the int value of that part. | DateTimeFunc | ||
[statisk]
Takes a String datepart and a Date and it returns the int value of that part. | DateTimeFunc | ||
[statisk]
Returns the int day of week value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the day of year corresponding to a date input. | DateTimeFunc | ||
[statisk]
Returns the number of days in a month. | DateTimeFunc | ||
[statisk]
Returns the number of days in a given year. | DateTimeFunc | ||
[statisk]
Returns the ordinal (the day's number in the year) for the first day of the specified month. | DateTimeFunc | ||
[statisk]
Returns the int day value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int day value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int hour value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int hour value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int millisecond value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int millisecond UTC value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int minute value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int minute value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int month value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int month value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int quarter value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int second value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int second value of a Date param. | DateTimeFunc | ||
[statisk]
Returns the int year value of a Date param. | DateTimeFunc | ||
[statisk]
Returns int year value of a Date param. | DateTimeFunc | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
[statisk]
Returns a boolean indicating whether a year is a leap year or not. | DateTimeFunc | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
[statisk]
Returns the current date and time. | DateTimeFunc | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
[statisk]
Returns the current date and time (legacy). | DateTimeFunc | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
[statisk]
Returns the week of the year for a Date. | DateTimeFunc | ||
[statisk]
Returns the number of years between two dates. | DateTimeFunc |
createDate | () | metod |
public static function createDate(year:int, month:int, day:int, hour:int, minute:int, second:int, millisecond:int = 0):Date
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Creates a date in the local timezone.
Parametrar
year:int — year
| |
month:int — month
| |
day:int — day
| |
hour:int — hour
| |
minute:int — minute
| |
second:int — second
| |
millisecond:int (default = 0 ) — Millisecond
|
Date — a new date
|
createDateUTC | () | metod |
public static function createDateUTC(year:int, month:int, day:int, hour:int, minute:int, second:int, millisecond:int = 0):Date
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Creates a date in the UTC timezone.
Parametrar
year:int — Year
| |
month:int — Month
| |
day:int — Day
| |
hour:int — Hour
| |
minute:int — Minute
| |
second:int — Second
| |
millisecond:int (default = 0 ) — Millisecond
|
Date — New date
|
dateAdd | () | metod |
public static function dateAdd(part:String, units:int, date:Date):Date
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Adds units of time to a date. Units are:
- yyyy: Year
- q: Quarter
- m: Month
- y: Day of year
- d: Day
- w: Weekday
- ww: Week
- h: Hour
- n: Minute
- s: Second
- l: Millisecond
Parametrar
part:String — Type of units to add
| |
units:int — Number of units
| |
date:Date — Date
|
Date — New date; null if date is null
|
dateCompare | () | metod |
public static function dateCompare(date1:Date, date2:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Takes two dates and returns -1, 0, or 1 depending on whether the first is smaller, equal or larger than the second.
Parametrar
date1:Date — First date for comparison
| |
date2:Date — Second date for comparison
|
int — int; -1 if date1 < date2, 0 if date1=date2, 1 if date1 > date2.
Returns 0 if either date is null;
|
dateDiff | () | metod |
public static function dateDiff(part:String, date1:Date, date2:Date):Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Takes a String datepart and two Dates and returns an int number of dateparts between the two Dates.
Parametrar
part:String — String valid datepart
| |
date1:Date — Date first comparison date
| |
date2:Date — Date second comparison date
|
Number — Value representing number of dateparts between date1 and date2.
Returns zero if either date is null;
|
Utlöser
Error — if bad part
|
datePart | () | metod |
public static function datePart(part:String, date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Takes a String datepart and a Date and it returns the int value of that part.
Parametrar
part:String — String valid date part (yyyy, m, y, d, w, ww, h, n, s)
| |
date:Date — Date for which part should be returned
|
int — Value representing datepart for given Date. Returns zero if date is null.
|
datePartUTC | () | metod |
public static function datePartUTC(part:String, date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Takes a String datepart and a Date and it returns the int value of that part.
Parametrar
part:String — String valid date part (yyyy, m, y, d, w, ww, h, n, s)
| |
date:Date — Date for which part should be returned
|
int — Value representing datepart for given Date. Returns zero if date is null.
|
dayOfWeek | () | metod |
public static function dayOfWeek(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int day of week value of a Date param.
Parametrar
date:Date — Date for which day of week will be returned
|
int — Day of week of input date. Returns -1 if date is null.
|
dayOfYear | () | metod |
public static function dayOfYear(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the day of year corresponding to a date input.
Parametrar
date:Date — Date for which day of year will be returned
|
int — Day of year corresponding to date input. Returns -1 if date is null.
|
daysInMonth | () | metod |
public static function daysInMonth(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the number of days in a month.
Parametrar
date:Date — Date for which number of days in month will be returned
|
int — Number of days in this month. Returns zero if date is null.
|
daysInYear | () | metod |
public static function daysInYear(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the number of days in a given year.
Parametrar
date:Date — Date for which number of days in year will be returned
|
int — Number of days this year. Returns zero if date is null.
|
firstDayOfMonth | () | metod |
public static function firstDayOfMonth(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the ordinal (the day's number in the year) for the first day of the specified month.
Parametrar
date:Date — Date for which first day of month will be returned
|
int — Ordinal for the first day of month param. Returns zero if date is null.
|
getDay | () | metod |
public static function getDay(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int day value of a Date param.
Parametrar
date:Date — Date for which day will be returned
|
int — Day of input date. Returns zero if date is null.
|
getDayUTC | () | metod |
public static function getDayUTC(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int day value of a Date param.
Parametrar
date:Date — Date for which day will be returned
|
int — Day of input date. Returns zero if date is null.
|
getHour | () | metod |
public static function getHour(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int hour value of a Date param.
Parametrar
date:Date — Date for which hour will be returned
|
int — Hour of input date. Returns -1 if date is null.
|
getHourUTC | () | metod |
public static function getHourUTC(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int hour value of a Date param.
Parametrar
date:Date — Date for which hour will be returned
|
int — Hour of input date. Returns -1 if date is null.
|
getMillisecond | () | metod |
public static function getMillisecond(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int millisecond value of a Date param.
Parametrar
date:Date — Date for which second will be returned
|
int — Millisecond of input date. Returns -1 if date is null.
|
getMillisecondUTC | () | metod |
public static function getMillisecondUTC(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int millisecond UTC value of a Date param.
Parametrar
date:Date — Date for which second will be returned
|
int — Millisecond UTC of input date. Returns -1 if date is null.
|
getMinute | () | metod |
public static function getMinute(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int minute value of a Date param.
Parametrar
date:Date — Date for which minute will be returned
|
int — Minute of input date. Returns -1 if date is null.
|
getMinuteUTC | () | metod |
public static function getMinuteUTC(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int minute value of a Date param.
Parametrar
date:Date — Date for which minute will be returned
|
int — Minute of input date. Return -1 if date is null.
|
getMonth | () | metod |
public static function getMonth(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int month value of a Date param.
Parametrar
date:Date — Date for which month will be returned
|
int — Month of input date. Returns 0 if date is null.
|
getMonthUTC | () | metod |
public static function getMonthUTC(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int month value of a Date param.
Parametrar
date:Date — Date for which month will be returned
|
int — month of input date. Returns 0 if date is null.
|
getQuarter | () | metod |
public static function getQuarter(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int quarter value of a Date param.
Parametrar
date:Date — Date for which quarter will be returned
|
int — Quarter of input date (1-4). Returns 0 if date is null.
|
getSecond | () | metod |
public static function getSecond(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int second value of a Date param.
Parametrar
date:Date — Date for which second will be returned
|
int — Second of input date. Returns -1 if date is null.
|
getSecondUTC | () | metod |
public static function getSecondUTC(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int second value of a Date param.
Parametrar
date:Date — Date for which second will be returned
|
int — Second of input date. Returns -1 if date is null.
|
getYear | () | metod |
public static function getYear(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the int year value of a Date param.
Parametrar
date:Date — Date for which Year will be returned
|
int — Year of input date. Returns zero if date is null.
|
getYearUTC | () | metod |
public static function getYearUTC(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns int year value of a Date param.
Parametrar
date:Date — Date for which Year will be returned
|
int — Year of input date. Returns zero if date is null.
|
isLeapYear | () | metod |
public static function isLeapYear(year:int):Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns a boolean indicating whether a year is a leap year or not. Differ in logic in years before 1582 (follow Java calendar class).
Parametrar
year:int — int year
|
Boolean — Boolean indicating whether year is a leap year
|
now | () | metod |
today | () | metod |
weekOfYear | () | metod |
public static function weekOfYear(date:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the week of the year for a Date.
Parametrar
date:Date — Date
|
int — Week of the year. Returns zero if date is null.
|
years | () | metod |
public static function years(endDate:Date, startDate:Date):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the number of years between two dates.
Parametrar
endDate:Date — End date
| |
startDate:Date — Starting date
|
int — Numbers of years between the start and end dates.
Returns -1 if either date is null.
|
Tue Jun 12 2018, 01:40 PM Z