What is the technical name for the YYYY-MM-DD HH:MM:SS datetime format?

青春壹個敷衍的年華 提交于 2021-02-20 06:14:01

问题


Does the YYYY-MM-DD HH:MM:SS datetime format have a special name? I am writing a function that returns a date in this format and I'm trying to figure out what to call the function.


回答1:


I can't find a source, but in my experience (25 years working as a systems programmer in UNIX environments) this format is referred to colloquially among engineers as Yoda Time.

It's not valid ISO 8601 because it uses a space instead of a T to separate the date and time parts.




回答2:


It looks a lot like ISO 8601 format, but you can never be too sure with time formats.




回答3:


I think its a variation on the ISO 8601 format. There is more info regarding the format here:

http://dataeducation.com/blog/input-date-formats



来源:https://stackoverflow.com/questions/12441468/what-is-the-technical-name-for-the-yyyy-mm-dd-hhmmss-datetime-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!