Skip to content

v0.6.0

Compare
Choose a tag to compare
@steffenbusch steffenbusch released this 27 Oct 14:20
· 15 commits to main since this release

What's Changed

  • Code refactoring
  • New placeholders for UTC equivalents of the current time placeholders - see below
  • Add placeholder support for subdirective time_format_custom

New placeholders

UTC equivalents of the current time placeholders (with .utc added):

  • {extra.time.now.utc.month} -> Current month in UTC as an integer (e.g., 10 for October).
  • {extra.time.now.utc.month_padded} -> Current month in UTC as a zero-padded string (e.g., "05" for May).
  • {extra.time.now.utc.day} -> Current day of the month in UTC as an integer.
  • {extra.time.now.utc.day_padded} -> Current day of the month in UTC as a zero-padded string.
  • {extra.time.now.utc.hour} -> Current hour in UTC in 24-hour format as an integer.
  • {extra.time.now.utc.hour_padded} -> Current hour in UTC in 24-hour format as a zero-padded string.
  • {extra.time.now.utc.minute} -> Current minute in UTC as an integer.
  • {extra.time.now.utc.minute_padded} -> Current minute in UTC as a zero-padded string.
  • {extra.time.now.utc.second} -> Current second in UTC as an integer.
  • {extra.time.now.utc.second_padded} -> Current second in UTC as a zero-padded string.
  • {extra.time.now.utc.timezone_offset} -> UTC timezone offset (always +0000).
  • {extra.time.now.utc.timezone_name} -> UTC timezone abbreviation (always UTC).
  • {extra.time.now.utc.iso_week} -> Current ISO week number of the year in UTC.
  • {extra.time.now.utc.iso_year} -> ISO year corresponding to the current ISO week in UTC.
  • {extra.time.now.utc.custom} -> Current UTC time in a custom format, configurable via the time_format_custom directive.

Full Changelog: v0.5.1...v0.6.0