Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho