com.ibm.commerce.inventory.facade.server.helper

Class XMLDateTimeHelper

  • java.lang.Object
    • com.ibm.commerce.inventory.facade.server.helper.XMLDateTimeHelper


  • public class XMLDateTimeHelper
    extends java.lang.Object
    This class encapsulates some of the methods of XMLDateTimeFormat.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String format(java.util.Date aDate)
      This method is used to format a date into a string in UTC format.
      static java.util.Date parse(java.lang.String aStr)
      Parse a time string into a date type.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • XMLDateTimeHelper

        public XMLDateTimeHelper()
    • Method Detail

      • format

        public static java.lang.String format(java.util.Date aDate)
        This method is used to format a date into a string in UTC format.
        Parameters:
        aDate - a date type to be formatted
        Returns:
        UTC string or null if aDate is null.
      • parse

        public static java.util.Date parse(java.lang.String aStr)
        Parse a time string into a date type.
        Parameters:
        aStr - a string to be passed.
        Returns:
        date time or null if an exception is caught.