Time

public final class Time extends When

Class representation of a specific point in time. A meeting at 2pm would be represented as a time subobject.

Constructors

Link copied to clipboard
public When.Time When.Time(@Json(name = "time") Integer time, @Json(name = "timezone") String timezone)

Properties

Link copied to clipboard
private final Integer time

A UNIX timestamp representing the time of occurrence.

Link copied to clipboard
private final String timezone

If timezone is present, then the value for time will be read with timezone. Timezone using IANA formatted string. (e.g. "America/New_York")

Functions

Link copied to clipboard
public final WhenType getObject()

Returns the WhenType of this When object.

Link copied to clipboard
public final Integer getTime()

A UNIX timestamp representing the time of occurrence.

Link copied to clipboard
public final String getTimezone()

If timezone is present, then the value for time will be read with timezone. Timezone using IANA formatted string. (e.g. "America/New_York")