You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/12/20 09:55:46 UTC

[GitHub] [incubator-doris] frwrdt opened a new issue #2519: Support GET_FORMAT function in Apache Doris

frwrdt opened a new issue #2519: Support GET_FORMAT function in Apache Doris
URL: https://github.com/apache/incubator-doris/issues/2519
 
 
   Returns a format string. This function is useful in combination with the DATE_FORMAT() and the STR_TO_DATE() functions.
   
   The possible values for the first and second arguments result in several possible format strings (for the specifiers used, see the table in the DATE_FORMAT() function description). ISO format refers to ISO 9075, not ISO 8601.
   
   GET_FORMAT(DATE,'USA') | '%m.%d.%Y'
   GET_FORMAT(DATE,'JIS') | '%Y-%m-%d'
   GET_FORMAT(DATE,'ISO') | '%Y-%m-%d'
   GET_FORMAT(DATE,'EUR') | '%d.%m.%Y'
   GET_FORMAT(DATE,'INTERNAL') | '%Y%m%d'
   GET_FORMAT(DATETIME,'USA') | '%Y-%m-%d %H.%i.%s'
   GET_FORMAT(DATETIME,'JIS') | '%Y-%m-%d %H:%i:%s'
   GET_FORMAT(DATETIME,'ISO') | '%Y-%m-%d %H:%i:%s'
   GET_FORMAT(DATETIME,'EUR') | '%Y-%m-%d %H.%i.%s'
   GET_FORMAT(DATETIME,'INTERNAL') | '%Y%m%d%H%i%s'
   GET_FORMAT(TIME,'USA') | '%h:%i:%s %p'
   GET_FORMAT(TIME,'JIS') | '%H:%i:%s'
   GET_FORMAT(TIME,'ISO') | '%H:%i:%s'
   GET_FORMAT(TIME,'EUR') | '%H.%i.%s'
   GET_FORMAT(TIME,'INTERNAL') | '%H%i%s'

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org