jQuery-Timepicker-Addon icon indicating copy to clipboard operation
jQuery-Timepicker-Addon copied to clipboard

Can the timepicker return a TIMESTAMP?

Open ghost opened this issue 9 years ago • 3 comments
trafficstars

How does one get a TIMESTAMP from the timepicker (time since 1970 or GPS Epoch, January 1st 1980)?

ghost avatar May 10 '16 04:05 ghost

Need this as well. Trying to setup a nice date/time picker that reads/writes the timestamp from/to a hidden field.

So the database stores the timestamp and the front end renders the nice date/time picker.

dtbaker avatar Nov 06 '16 01:11 dtbaker

Hey I came up with this:

http://dtbaker.net/web-development/jquery-timepicker-with-unix-epoch/

Seems to work well

dtbaker avatar Nov 06 '16 02:11 dtbaker

@dtbaker your code has gone 404, could you please have a look at mirroring it somewhere safe?

luckydonald avatar Apr 03 '20 14:04 luckydonald