public static long ticksWithSecondsSetTo ( long ticks , int seconds ) { long oldSeconds = ticksToSeconds ( ticks ) ; return ticks - ( oldSeconds * MILLIS_PER_SECOND ) + ( seconds * MILLIS_PER_SECOND ) ; }
Sets the seconds component of the timestamp returning the new timestamp with updated component .