mdTranslator

Architecture

Internal Object


dateTime:

The dateTime object holds a date and time in Ruby format.

    def newDateTime
        intObj = {
            dateTime: nil,
            dateType: nil,
            dateResolution: nil
        }
    end

dateTime: ruby dateTime - date and time in Ruby internal dateTime format. The data will need to be converted with some string formatting before output.

dateType: string - a user provided definition for what the date describes (e.g., 'startDate', 'publication', 'completion').

dateResolution: string - a code generated by the mdTranslator's reader utility indicating the maximum resolution of the dateTime that was provided in the input file. For example, Y = year, indicates the user only provided a year and the month, day, hour, etc. added to make a valid dateTime value are not part of the user's input.