Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 721

How to manage time properly mysql

$
0
0

I have already a table with three time fields. One to register the hour when the user start working, when stop working and the difference. Now I want to add the day of the week(Mon-Sun) and the date. How can I properly do that, saying that then I will want to grab the hours that the user worked in the past 7 days, lets say.I've read that timestamp give all the information but I don't know whether I can separate days from date?

**table name = date_timedate_time_id = auto incrementuser_id = vartime_in = timetime_out = timetime_dif = time**

ps: I am using java(servlets) and mysql.

Thanks guys


Viewing all articles
Browse latest Browse all 721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>