Packageat.fhjoanneum.dmt.umj.core.util
Classpublic class LastTimeSavedUtil
InheritanceLastTimeSavedUtil Inheritance Object

Helper: LastTimeSavedUtil provides a singleton to COMPARE and convert W3C compatible time objects from and to strings.



Public Methods
 MethodDefined By
  
LastTimeSavedUtil(enforcer:SingletonEnforcer)
LastTimeSavedUtil
  
[static]
LastTimeSavedUtil
  
LastTimeSavedUtil
  
parseW3CDTF(str:String):Date
Parses dates that conform to the W3C Date-time Format into Date objects.
LastTimeSavedUtil
  
toW3CDTF(d:Date, includeMilliseconds:Boolean = false):String
Returns a date string formatted according to W3CDTF.
LastTimeSavedUtil
Protected Methods
 MethodDefined By
  
dealloc():void
LastTimeSavedUtil
  
init():void
LastTimeSavedUtil
Constructor Detail
LastTimeSavedUtil()Constructor
public function LastTimeSavedUtil(enforcer:SingletonEnforcer)



Parameters
enforcer:SingletonEnforcer
Method Detail
dealloc()method
protected function dealloc():void

getInstance()method 
public static function getInstance():LastTimeSavedUtil

Returns
LastTimeSavedUtil
getTempLastTimeSavedObject()method 
public function getTempLastTimeSavedObject():LastTimeSavedChecker

Returns
LastTimeSavedChecker
init()method 
protected function init():void

parseW3CDTF()method 
public function parseW3CDTF(str:String):Date

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Parses dates that conform to the W3C Date-time Format into Date objects. This function is useful for parsing RSS 1.0 and Atom 1.0 dates.

Parameters

str:String

Returns
Date

See also

toW3CDTF()method 
public function toW3CDTF(d:Date, includeMilliseconds:Boolean = false):String

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Returns a date string formatted according to W3CDTF.

Parameters

d:Date
 
includeMilliseconds:Boolean (default = false) — Determines whether to include the milliseconds value (if any) in the formatted string.

Returns
String

See also