java - How to get all milliseconds of a day? -


i store number of rows in db timestamp of moment in milliseconds. if need retrieve rows of given day, today, how correctly create starting , ending milliseconds of day?

i know simpledateformat , calendar.getinstance() briefly, need string manipulation (which want avoid) todays date only, add hours part , convert milliseconds, or there better way it?

since didn't provide code in question, please allow me give general answer in response..

what you're looking 2 date/times, today , tomorrow, both specified "0 hours, 0 minutes, 0 seconds".

today <= date , date < tomorrow 

note 2 different comparisons.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -