I have been working on an application in android, where I have to get the number of seconds from epoch till date…Usually when use the following function
long timeInSeconds = System.currentTimeMillis()/1000;
It returns me the seconds up till the current time including Date+Time. I actually want to ignore the time part of the second and keep number of seconds till date, which will result the same timestamp for the day…Is there anyway to do so..??? Any help is appreciated.
1 Answer