| |||||||||||
timestamp name Posted by John_Moylan (jfp), 25 June 2003 Evening all.My favoured method of timestamping is YYYYMMDDHHMMSS, does anyone know if this timestamp type has a specific name? I'm writing a class to manipulate this timestamp type and would like to call it by its correct moniker. thanks jfp Posted by admin (Graham Ellis), 26 June 2003 Dunno .... English isn't my strong point I've a pile of MySQL books here and I've had a look through a few of them and there's no one descriptor word that looks "official" in any of them so far .... how about calling it "sortable14" format and you are VERY welcome to reject my suggestion cos I don't really like that solution ..... Posted by John_Moylan (jfp), 26 June 2003 yeah, I've done the digging and searching too, and alas, not answer!<quote> how about calling it "sortable14" format and you are VERY welcome to reject my suggestion </quote> Suggestion rejected Is this the timestamp you use? I find this so easy to sort my results on in comparison to the others. When I finish the PHP class I'll stick it on the Forum, sure others will find a use for it. jfp Posted by admin (Graham Ellis), 26 June 2003 I await (with baited breath) to find out what you call your class Posted by waygood (waygood), 1 July 2003 I call mine mysql_datetime, but because of the different sizes then adding the 14 would clarify which accuracy you are using.By the way did you know that you can insert todays date inside the query using now() :- "INSERT ..... now() ...". And outside the query and inside PHP you can use time(). Although it gives a timestamp, mysql recognises it and converts it for you. This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |