Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27764 Feature Parity between PostgreSQL and Spark
  3. SPARK-28259

Date/Time Output Styles and Date Order Conventions

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • SQL
    • None

    Description

      Date/Time Output Styles

      Style Specification Description Example
      ISO ISO 8601, SQL standard 1997-12-17 07:37:16-08
      SQL traditional style 12/17/1997 07:37:16.00 PST
      Postgres original style Wed Dec 17 07:37:16 1997 PST
      German regional style 17.12.1997 07:37:16.00 PST

      https://www.postgresql.org/docs/11/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT-TABLE

       

      Date Order Conventions

      datestyle Setting Input Ordering Example Output
      SQL, DMY day/month/year 17/12/1997 15:37:16.00 CET
      SQL, MDY month/day/year 12/17/1997 07:37:16.00 PST
      Postgres, DMY day/month/year Wed 17 Dec 07:37:16 1997 PST

      https://www.postgresql.org/docs/11/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT2-TABLE

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: