UTCN¶
Definition¶
Extends¶
Extended By¶
None
Description¶
Time since unix epoc in nanoseconds
Method Summary¶
Owner | Name | Return Type | Description |
---|---|---|---|
UTCN | date() | String | converts to datetime string in format: yyyy-MM-dd |
UTCN | date(Timezone) | String | converts to datetime string in format: yyyy-MM-dd for a supplied timezone |
UTCN | datetime() | String | Returns a datetime string in yyyy-MM-dd HH:mm:ss. |
UTCN | datetime(Timezone) | String | Returns a datetime string in yyyy-MM-dd HH:mm:ss for a supplied timezone. |
UTCN | format(Format) | String | Returns a string which formats the UTC as a specific date time. |
UTCN | format(Format, Timezone) | String | Retruns a string which formats the UTC as a string based on the supplied format for a supplied timezone. |
Object | getClassName() | String | Returns the string name of this object's class type. |
UTCN | time() | String | Converts to datetime string in format: HH:mm:ss. |
UTCN | time(Timezone) | String | Returns a datetime string in HH:mm:ss for a supplied timezone. |
Object | toJson() | String | Returns a json representation of this object. |
Method Definitions¶
date()¶
Description¶
converts to datetime string in format: yyyy-MM-dd
date(Timezone)¶
String UTCN::date(String Timezone)
Description¶
converts to datetime string in format: yyyy-MM-dd for a supplied timezone
Parameter Definition¶
Name | Type | Description |
---|---|---|
Timezone | String | timezone, if null uses user default timezone |
datetime()¶
Description¶
Returns a datetime string in yyyy-MM-dd HH:mm:ss.
datetime(Timezone)¶
String UTCN::datetime(String Timezone)
Description¶
Returns a datetime string in yyyy-MM-dd HH:mm:ss for a supplied timezone.
Parameter Definition¶
Name | Type | Description |
---|---|---|
Timezone | String | timezone, if null uses user default timezone |
format(Format)¶
String UTCN::format(String Format)
Description¶
Returns a string which formats the UTC as a specific date time.
Parameter Definition¶
Name | Type | Description |
---|---|---|
Format | String | G-era BC/AD, y-year, M-month, w-week in year, W-week in month, D-day in year, d-day in month, F-day of week in month,E-day in week, a-am/pm, H-hour 0..23, k-hour 1..24, K-hour 0..11, h-hour 1..12, m-minute, s-second, S-millisecond, z-timezone, Z-RFR 822 timezone |
format(Format,Timezone)¶
String UTCN::format(String Format, String Timezone)
Description¶
Retruns a string which formats the UTC as a string based on the supplied format for a supplied timezone.
Parameter Definition¶
Name | Type | Description |
---|---|---|
Format | String | G-era BC/AD, y-year, M-month, w-week in year, W-week in month, D-day in year, d-day in month, F-day of week in month,E-day in week, a-am/pm, H-hour 0..23, k-hour 1..24, K-hour 0..11, h-hour 1..12, m-minute, s-second, S-millisecond, z-timezone, Z-RFR 822 timezone |
Timezone | String | timezone, if null uses user default timezone |
time()¶
Description¶
Converts to datetime string in format: HH:mm:ss.
time(Timezone)¶
String UTCN::time(String Timezone)
Description¶
Returns a datetime string in HH:mm:ss for a supplied timezone.
Parameter Definition¶
Name | Type | Description |
---|---|---|
Timezone | String | timezone, if null uses user default timezone |