Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
com.adobe.fiber.runtime.lib 

DateTimeFunc  - AS3 ADEP Data Services

Pacchettocom.adobe.fiber.runtime.lib
Classepublic class DateTimeFunc
EreditarietàDateTimeFunc Inheritance Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

The DateTimeFunc class defines the implementations of the expression runtime functions for Date and Time functions in the Adobe application modeling language.



Proprietà pubbliche
 ProprietàDefinito da
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
Metodi pubblici
 MetodoDefinito da
  
createDate(year:int, month:int, day:int, hour:int, minute:int, second:int, millisecond:int = 0):Date
[statico] 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
[statico] Creates a date in the UTC timezone.
DateTimeFunc
  
dateAdd(part:String, units:int, date:Date):Date
[statico] Adds units of time to a date.
DateTimeFunc
  
dateCompare(date1:Date, date2:Date):int
[statico] Takes two dates and returns -1, 0, or 1 depending on whether the first is smaller, equal or larger than the second.
DateTimeFunc
  
dateDiff(part:String, date1:Date, date2:Date):Number
[statico] Takes a String datepart and two Dates and returns an int number of dateparts between the two Dates.
DateTimeFunc
  
datePart(part:String, date:Date):int
[statico] Takes a String datepart and a Date and it returns the int value of that part.
DateTimeFunc
  
[statico] Takes a String datepart and a Date and it returns the int value of that part.
DateTimeFunc
  
[statico] Returns the int day of week value of a Date param.
DateTimeFunc
  
[statico] Returns the day of year corresponding to a date input.
DateTimeFunc
  
[statico] Returns the number of days in a month.
DateTimeFunc
  
[statico] Returns the number of days in a given year.
DateTimeFunc
  
[statico] Returns the ordinal (the day's number in the year) for the first day of the specified month.
DateTimeFunc
  
[statico] Returns the int day value of a Date param.
DateTimeFunc
  
[statico] Returns the int day value of a Date param.
DateTimeFunc
  
[statico] Returns the int hour value of a Date param.
DateTimeFunc
  
[statico] Returns the int hour value of a Date param.
DateTimeFunc
  
[statico] Returns the int millisecond value of a Date param.
DateTimeFunc
  
[statico] Returns the int millisecond UTC value of a Date param.
DateTimeFunc
  
[statico] Returns the int minute value of a Date param.
DateTimeFunc
  
[statico] Returns the int minute value of a Date param.
DateTimeFunc
  
[statico] Returns the int month value of a Date param.
DateTimeFunc
  
[statico] Returns the int month value of a Date param.
DateTimeFunc
  
[statico] Returns the int quarter value of a Date param.
DateTimeFunc
  
[statico] Returns the int second value of a Date param.
DateTimeFunc
  
[statico] Returns the int second value of a Date param.
DateTimeFunc
  
[statico] Returns the int year value of a Date param.
DateTimeFunc
  
[statico] Returns int year value of a Date param.
DateTimeFunc
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
  
[statico] Returns a boolean indicating whether a year is a leap year or not.
DateTimeFunc
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
Object
  
[statico] Returns the current date and time.
DateTimeFunc
 Inherited
Indica se la proprietà specificata esiste ed è enumerabile.
Object
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
  
[statico] Returns the current date and time (legacy).
DateTimeFunc
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
 Inherited
Restituisce la rappresentazione in formato stringa dell'oggetto specificato.
Object
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
  
[statico] Returns the week of the year for a Date.
DateTimeFunc
  
years(endDate:Date, startDate:Date):int
[statico] Returns the number of years between two dates.
DateTimeFunc
Descrizione dei metodi

createDate

()metodo
public static function createDate(year:int, month:int, day:int, hour:int, minute:int, second:int, millisecond:int = 0):Date

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Creates a date in the local timezone.

Parametri

year:int — year
 
month:int — month
 
day:int — day
 
hour:int — hour
 
minute:int — minute
 
second:int — second
 
millisecond:int (default = 0) — Millisecond

Restituisce
Date — a new date

createDateUTC

()metodo 
public static function createDateUTC(year:int, month:int, day:int, hour:int, minute:int, second:int, millisecond:int = 0):Date

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Creates a date in the UTC timezone.

Parametri

year:int — Year
 
month:int — Month
 
day:int — Day
 
hour:int — Hour
 
minute:int — Minute
 
second:int — Second
 
millisecond:int (default = 0) — Millisecond

Restituisce
Date — New date

dateAdd

()metodo 
public static function dateAdd(part:String, units:int, date:Date):Date

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: 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

Parametri

part:String — Type of units to add
 
units:int — Number of units
 
date:Date — Date

Restituisce
Date — New date; null if date is null

dateCompare

()metodo 
public static function dateCompare(date1:Date, date2:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: 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.

Parametri

date1:Date — First date for comparison
 
date2:Date — Second date for comparison

Restituisce
int — int; -1 if date1 < date2, 0 if date1=date2, 1 if date1 > date2. Returns 0 if either date is null;

dateDiff

()metodo 
public static function dateDiff(part:String, date1:Date, date2:Date):Number

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Takes a String datepart and two Dates and returns an int number of dateparts between the two Dates.

Parametri

part:String — String valid datepart
 
date1:Date — Date first comparison date
 
date2:Date — Date second comparison date

Restituisce
Number — Value representing number of dateparts between date1 and date2. Returns zero if either date is null;

Genera
Error — if bad part

datePart

()metodo 
public static function datePart(part:String, date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Takes a String datepart and a Date and it returns the int value of that part.

Parametri

part:String — String valid date part (yyyy, m, y, d, w, ww, h, n, s)
 
date:Date — Date for which part should be returned

Restituisce
int — Value representing datepart for given Date. Returns zero if date is null.

datePartUTC

()metodo 
public static function datePartUTC(part:String, date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Takes a String datepart and a Date and it returns the int value of that part.

Parametri

part:String — String valid date part (yyyy, m, y, d, w, ww, h, n, s)
 
date:Date — Date for which part should be returned

Restituisce
int — Value representing datepart for given Date. Returns zero if date is null.

dayOfWeek

()metodo 
public static function dayOfWeek(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int day of week value of a Date param.

Parametri

date:Date — Date for which day of week will be returned

Restituisce
int — Day of week of input date. Returns -1 if date is null.

dayOfYear

()metodo 
public static function dayOfYear(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the day of year corresponding to a date input.

Parametri

date:Date — Date for which day of year will be returned

Restituisce
int — Day of year corresponding to date input. Returns -1 if date is null.

daysInMonth

()metodo 
public static function daysInMonth(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the number of days in a month.

Parametri

date:Date — Date for which number of days in month will be returned

Restituisce
int — Number of days in this month. Returns zero if date is null.

daysInYear

()metodo 
public static function daysInYear(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the number of days in a given year.

Parametri

date:Date — Date for which number of days in year will be returned

Restituisce
int — Number of days this year. Returns zero if date is null.

firstDayOfMonth

()metodo 
public static function firstDayOfMonth(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the ordinal (the day's number in the year) for the first day of the specified month.

Parametri

date:Date — Date for which first day of month will be returned

Restituisce
int — Ordinal for the first day of month param. Returns zero if date is null.

getDay

()metodo 
public static function getDay(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int day value of a Date param.

Parametri

date:Date — Date for which day will be returned

Restituisce
int — Day of input date. Returns zero if date is null.

getDayUTC

()metodo 
public static function getDayUTC(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int day value of a Date param.

Parametri

date:Date — Date for which day will be returned

Restituisce
int — Day of input date. Returns zero if date is null.

getHour

()metodo 
public static function getHour(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int hour value of a Date param.

Parametri

date:Date — Date for which hour will be returned

Restituisce
int — Hour of input date. Returns -1 if date is null.

getHourUTC

()metodo 
public static function getHourUTC(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int hour value of a Date param.

Parametri

date:Date — Date for which hour will be returned

Restituisce
int — Hour of input date. Returns -1 if date is null.

getMillisecond

()metodo 
public static function getMillisecond(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 4.5
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int millisecond value of a Date param.

Parametri

date:Date — Date for which second will be returned

Restituisce
int — Millisecond of input date. Returns -1 if date is null.

getMillisecondUTC

()metodo 
public static function getMillisecondUTC(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 4.5
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int millisecond UTC value of a Date param.

Parametri

date:Date — Date for which second will be returned

Restituisce
int — Millisecond UTC of input date. Returns -1 if date is null.

getMinute

()metodo 
public static function getMinute(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int minute value of a Date param.

Parametri

date:Date — Date for which minute will be returned

Restituisce
int — Minute of input date. Returns -1 if date is null.

getMinuteUTC

()metodo 
public static function getMinuteUTC(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int minute value of a Date param.

Parametri

date:Date — Date for which minute will be returned

Restituisce
int — Minute of input date. Return -1 if date is null.

getMonth

()metodo 
public static function getMonth(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int month value of a Date param.

Parametri

date:Date — Date for which month will be returned

Restituisce
int — Month of input date. Returns 0 if date is null.

getMonthUTC

()metodo 
public static function getMonthUTC(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int month value of a Date param.

Parametri

date:Date — Date for which month will be returned

Restituisce
int — month of input date. Returns 0 if date is null.

getQuarter

()metodo 
public static function getQuarter(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int quarter value of a Date param.

Parametri

date:Date — Date for which quarter will be returned

Restituisce
int — Quarter of input date (1-4). Returns 0 if date is null.

getSecond

()metodo 
public static function getSecond(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int second value of a Date param.

Parametri

date:Date — Date for which second will be returned

Restituisce
int — Second of input date. Returns -1 if date is null.

getSecondUTC

()metodo 
public static function getSecondUTC(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int second value of a Date param.

Parametri

date:Date — Date for which second will be returned

Restituisce
int — Second of input date. Returns -1 if date is null.

getYear

()metodo 
public static function getYear(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the int year value of a Date param.

Parametri

date:Date — Date for which Year will be returned

Restituisce
int — Year of input date. Returns zero if date is null.

getYearUTC

()metodo 
public static function getYearUTC(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns int year value of a Date param.

Parametri

date:Date — Date for which Year will be returned

Restituisce
int — Year of input date. Returns zero if date is null.

isLeapYear

()metodo 
public static function isLeapYear(year:int):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: 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).

Parametri

year:int — int year

Restituisce
Boolean — Boolean indicating whether year is a leap year

now

()metodo 
public static function now():Date

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the current date and time.

Restituisce
Date — the current date and time.

today

()metodo 
public static function today():Date

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the current date and time (legacy).

Restituisce
Date — the current date and time.

weekOfYear

()metodo 
public static function weekOfYear(date:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the week of the year for a Date.

Parametri

date:Date — Date

Restituisce
int — Week of the year. Returns zero if date is null.

years

()metodo 
public static function years(endDate:Date, startDate:Date):int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Adobe Digital Enterprise Platform Data Services per Java EE 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the number of years between two dates.

Parametri

endDate:Date — End date
 
startDate:Date — Starting date

Restituisce
int — Numbers of years between the start and end dates. Returns -1 if either date is null.




[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.