Class: GenesisRuby::Api::Constants::DateTimeFormats

Inherits:
Object
  • Object
show all
Extended by:
Mixins::Constants::Common
Defined in:
lib/genesis_ruby/api/constants/date_time_formats.rb

Overview

Date Time string representation formats

Constant Summary collapse

DD_MM_YYYY_L_HYPHENS =

Little endian(day, month, year) system with hyphens in between

'%d-%m-%Y'
DD_MM_YYYY_L_DOTS =

Little endian(day, month, year) system with dots in between

'%d.%m.%Y'
DD_MM_YYYY_L_SLASHES =

Little endian(day, month, year) system with dots in between

'%d/%m/%Y'
YYYY_MM_DD_H_I_S_ZULU =

Zulu timestamp

'%Y-%m-%dT%H:%M:%SZ'
YYYY_MM_DD_H_I_S =

Modified Zulu timestamp

'%Y-%m-%d %H:%M:%S'
YYYY_MM_DD_ISO_8601 =

Date Format ISO 8601

'%Y-%m-%d'
MM_DD =

Date Format

'%m%d'

Class Method Summary collapse

Methods included from Mixins::Constants::Common

all, valid?

Class Method Details

.allObject



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/genesis_ruby/api/constants/date_time_formats.rb', line 34

def all
  [
    DD_MM_YYYY_L_HYPHENS,
    DD_MM_YYYY_L_DOTS,
    DD_MM_YYYY_L_SLASHES,
    YYYY_MM_DD_H_I_S_ZULU,
    YYYY_MM_DD_H_I_S,
    MM_DD,
    YYYY_MM_DD_ISO_8601 # Always keep it last!!!
  ]
end