Method: AEMO::Time.parse_timestamp8
- Defined in:
- lib/aemo/time.rb
permalink .parse_timestamp8(string) ⇒ Time
Parse an 8 character date.
69 70 71 72 73 |
# File 'lib/aemo/time.rb', line 69 def (string) raise AEMO::TimeError unless string.match(TIMESTAMP8_PATTERN) ::Time.find_zone(NEMTIMEZONE).strptime(string, TIMESTAMP8) end |