Module: Adiwg_DateTime
- Defined in:
- lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_dateTime.rb
Class Method Summary collapse
Class Method Details
.unpack(sDateTime) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_dateTime.rb', line 11 def self.unpack(sDateTime) # instance classes needed in script intMetadataClass = InternalMetadata.new # dateTime intDateTime = intMetadataClass.newDateTime aDateTimeReturn = AdiwgDateTimeFun.dateTimeFromString(sDateTime) intDateTime[:dateTime] = aDateTimeReturn[0] intDateTime[:dateResolution] = aDateTimeReturn[1] return intDateTime end |