Documentation of 'us.bpsm.edn.parser.InstantUtils' Java class
InstantUtils
us.bpsm.edn.parser

Class InstantUtils



  • public class InstantUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      InstantUtils() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String calendarToString(java.util.GregorianCalendar cal)
      Return a String suitable for use as an edn #inst, given a GregorianCalendar.
      static java.lang.String dateToString(java.util.Date date)
      Return a String suitable for use as an edn #inst, given a Date.
      static java.lang.String timestampToString(java.sql.Timestamp ts)
      Return a String suitable for use as an edn #inst, given a Timestamp.
      • Methods inherited from class java.lang.Object

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

      • InstantUtils

        public InstantUtils()
    • Method Detail

      • calendarToString

        public static java.lang.String calendarToString(java.util.GregorianCalendar cal)
        Return a String suitable for use as an edn #inst, given a GregorianCalendar.
        Returns:
        an RFC3339 compatible string.
      • dateToString

        public static java.lang.String dateToString(java.util.Date date)
        Return a String suitable for use as an edn #inst, given a Date.
        Returns:
        an RFC3339 compatible string.
      • timestampToString

        public static java.lang.String timestampToString(java.sql.Timestamp ts)
        Return a String suitable for use as an edn #inst, given a Timestamp.
        Returns:
        an RFC3339 compatible string.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.