Is it possible to split up the time part of a datetime string into the hours, minutes and seconds, so that i have a single numerical value for each field? Ideally on retrieval from a mysql database.
I have looked about on the site and there appears to be an abundance of advice on how to split the date and time parts but none concerning my specific question. Many thanks in advance.
P.S I would be selecting the datetime from a mysql database using PHP.
If you want to do this directly in sql:
Or if you want to do it in php after executing the query
Which will look like