Barcode.CalendarDateTime

  • Barcode.CalendarDateTime represents date and time data from calendar events encoded in a barcode.

  • If hours, minutes, or seconds are not specified in the barcode, they are set to -1.

  • You can retrieve individual components of the date and time like day, month, year, hours, minutes, and seconds.

  • The raw encoded value of the date and time can be obtained.

  • There is a method to check if the date time is in UTC format.

public static class Barcode.CalendarDateTime extends Object

DateTime data type used in calendar events. If hours/minutes/seconds are not specified in the barcode value, they will be set to -1.

Public Method Summary

int
getDay()
Gets the day of the calendar date time.
int
getHours()
Gets the hours of the calendar date time.
int
getMinutes()
Gets the minutes of the calendar date time.
int
getMonth()
Gets the month of the calendar date time.
String
getRawValue()
Gets the raw value as it was encoded in the barcode.
int
getSeconds()
Gets the seconds of the calendar date time.
int
getYear()
Gets the year of the calendar date time.
boolean
isUtc()
Gets whether the date time is UTC.

Inherited Method Summary

Public Methods

public int getDay ()

Gets the day of the calendar date time.

public int getHours ()

Gets the hours of the calendar date time.

public int getMinutes ()

Gets the minutes of the calendar date time.

public int getMonth ()

Gets the month of the calendar date time.

public String getRawValue ()

Gets the raw value as it was encoded in the barcode.

Structured values are not parsed, for example: '20130131', '20130210T010203', '20130210T010203Z'. Please refer to here for more details.

Returns null if the raw value can not be determined.

public int getSeconds ()

Gets the seconds of the calendar date time.

public int getYear ()

Gets the year of the calendar date time.

public boolean isUtc ()

Gets whether the date time is UTC.