Class PDSDateConvert


  • public class PDSDateConvert
    extends Object
    The DateTimeConverter class is necessary to convert PDS4-compliant date/time strings into Solr-Compliant date/time Strings The Solr DateField, which is necessary for performing time queries, is ISO 8601 standard-compliant format, while PDS4 uses a variable number of ASCII date/time formats.
    Author:
    jpadams
    • Constructor Detail

      • PDSDateConvert

        public PDSDateConvert()
    • Method Detail

      • getDefaultTime

        public static String getDefaultTime​(String name)
        Get a default time depending on the name of the field. "start" fields will receive an "early" default, while remaining fields will receive a default in the future.
        Parameters:
        name -
        Returns: