Date.fromSystem()
syntax: |
Date.fromSystem(time) |
where: |
time - time in system data format, the same format as returned by Clib.time()
|
return: |
object - Date object with the time passed.
|
description: |
This method converts the parameter time, which is in the same format as returned by the Clib.time(), to a standard JavaScript Date object.
|
example: |
// To create a Date object // from date information obtained using // Clib, use code similar to:
var SysDate = Clib.time(); var ObjDate = Date.fromSystem(SysDate);
// To convert a Date object to system format // that can be used by // the methods of the Clib object, // use code similar to:
var SysDate = ObjDate.toSystem(); |