Method: AEMO::Time.format_timestamp12

Defined in:
lib/aemo/time.rb

.format_timestamp12(time) ⇒ String

Format a time to a timestamp 12.

Parameters:

Returns:

  • (String)


32
33
34
# File 'lib/aemo/time.rb', line 32

def format_timestamp12(time)
  time.in_time_zone(NEMTIMEZONE).strftime(TIMESTAMP12)
end