timeFormat property

String? timeFormat
getter/setter pair

Determines how the time part of the DateElement will be displayed in the document.

If unset, the default value is TIME_FORMAT_DISABLED, indicating no time should be shown. Possible string values are:

  • "TIME_FORMAT_UNSPECIFIED" : The time format is unspecified.
  • "TIME_FORMAT_DISABLED" : Indicates that the date does not have a time.
  • "TIME_FORMAT_HOUR_MINUTE" : The time format shows the hour and minute. For example, "Jan 1, 1970 12:00 PM".
  • "TIME_FORMAT_HOUR_MINUTE_TIMEZONE" : The time format shows the hour, minute, and timezone. For example, "Jan 1, 1970 12:00 PM UTC".

Implementation

core.String? timeFormat;