Android Long to Date Convert getStartTimeOfDay(long timeInLong)

Here you can find the source of getStartTimeOfDay(long timeInLong)

Description

get Start Time Of Day

License

Open Source License

Declaration

public static long getStartTimeOfDay(long timeInLong) 

Method Source Code

//package com.java2s;

import android.text.format.Time;

public class Main {
    public static long getStartTimeOfDay(long timeInLong) {
        Time time = new Time();
        time.set(timeInLong);//from  ww w. j ava2 s. c  om

        Time dayStartTime = new Time();
        dayStartTime.year = time.year;
        dayStartTime.month = time.month;
        dayStartTime.monthDay = time.monthDay;

        return dayStartTime.toMillis(true);
    }
}

Related

  1. getRelativeTimeFromMilliSeconds(long dateInMillis)
  2. getShortDateString(long date, Locale locale)
  3. getShortDateTimeString(long date, Locale locale)
  4. getSimpleDatetime(long milliseconds)
  5. getStandardTime(long timestamp)
  6. getStringOfLong(long date)
  7. getTimeInterval(long interval)
  8. getTimeLabel(long date)
  9. getTimeLabel(long time)