Packagevegas.util
Classpublic class DateUtil

The DateUtil utility class is an all-static class with methods for working with dates.



Public Methods
 MethodDefined by
  
clone(d:Date):Date
[static] Returns a shallow copy of the date object passed in argument.
DateUtil
  
copy(d:Date):Date
[static] Returns a deep copy of the date object passed in argument.
DateUtil
  
equals(d1:Date, d2:Date):Boolean
[static] Compares the twno specified Date objects for equality.
DateUtil
  
toSource(date:Date, ... rest):String
[static] Returns a string representation the source code of the Date.
DateUtil
Method detail
clone()method
public static function clone(d:Date):Date

Returns a shallow copy of the date object passed in argument.

Parameters
d:Date

Returns
Date — a shallow copy of the date object passed in argument.
copy()method 
public static function copy(d:Date):Date

Returns a deep copy of the date object passed in argument.

Parameters
d:Date

Returns
Date — a deep copy of the date object passed in argument.
equals()method 
public static function equals(d1:Date, d2:Date):Boolean

Compares the twno specified Date objects for equality.

Parameters
d1:Date
 
d2:Date

Returns
Booleantrue if the the two specified Date object are equals.
toSource()method 
public static function toSource(date:Date, ... rest):String

Returns a string representation the source code of the Date.

Parameters
date:Date
 
... rest

Returns
String — a string representation the source code of the Date.