You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/07/05 12:31:00 UTC

[jira] [Updated] (SPARK-28259) Date/Time Output Styles and Date Order Conventions

     [ https://issues.apache.org/jira/browse/SPARK-28259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuming Wang updated SPARK-28259:
--------------------------------
    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]

 

  was:
*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]

 


> Date/Time Output Styles and Date Order Conventions
> --------------------------------------------------
>
>                 Key: SPARK-28259
>                 URL: https://issues.apache.org/jira/browse/SPARK-28259
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> *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]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org