Skip to content
Reference > Classes

UTC

Definition

UTC var = .... ;

Extends

Extended By

None

Description

Time since unix epoc in milliseconds

Method Summary

Owner Name Return Type Description
UTC date() String converts to datetime string in format: yyyy-MM-dd
UTC date(Timezone) String converts to datetime string in format: yyyy-MM-dd for a supplied timezone
UTC datetime() String converts to datetime string in format: yyyy-MM-dd HH:mm:ss
UTC datetime(Timezone) String converts to datetime string in format: yyyy-MM-dd HH:mm:ss for a supplied timezone
UTC format(Format) String Formats the UTC as a specific date time
UTC format(Format, Timezone) String 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.
UTC time() String converts to datetime string in format: HH:mm:ss
UTC time(Timezone) String converts to datetime string in format: HH:mm:ss for a supplied timezone
Object toJson() String Returns a json representation of this object.

Method Definitions


date()

String UTC::date()

Description

converts to datetime string in format: yyyy-MM-dd


date(Timezone)

String UTC::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()

String UTC::datetime()

Description

converts to datetime string in format: yyyy-MM-dd HH:mm:ss


datetime(Timezone)

String UTC::datetime(String Timezone)

Description

converts to datetime string in format: 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 UTC::format(String Format)

Description

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 UTC::format(String Format, String Timezone)

Description

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()

String UTC::time()

Description

converts to datetime string in format: HH:mm:ss


time(Timezone)

String UTC::time(String Timezone)

Description

converts to datetime string in format: HH:mm:ss for a supplied timezone

Parameter Definition

Name Type Description
Timezone String  timezone, if null uses user default timezone