Ryan
Ryan

Reputation: 6057

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

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.

Upvotes: 18

Views: 18184

Answers (4)

Milan Adamovsky
Milan Adamovsky

Reputation: 1579

I chose the name formatToUniversalDate (since that is what ISO 8601 is essentially doing).

Upvotes: 0

ruief
ruief

Reputation: 466

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.

Upvotes: 11

FixMaker
FixMaker

Reputation: 3877

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

Upvotes: 1

Gleno
Gleno

Reputation: 16969

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

Upvotes: 3

Related Questions