$now

( documentation for Telosys generator version 4.0.0 )


Object providing the current system date and time in different formats

Since : 3.3.0

Attributes and methods
.date : String

Returns the current date with the default format 'yyyy-MM-dd'
example : '2019-07-14'

Example :
   $now.date

.datetime : String

Returns the current date and time with the default format 'yyyy-MM-dd HH:mm:ss'
example : '2019-07-14 14:55:34'

Example :
   $now.datetime

.format(String format) : String

Returns the current date/time formatted with the given format

Parameters :
   format : the desired format

Example :
   $now.format('yyyy-MM')

.time : String

Returns the current time with the default format 'HH:mm:ss'
example : '14:55:34'

Example :
   $now.time