Java Today getStartOfToday()

Here you can find the source of getStartOfToday()

Description

get Start Of Today

License

Open Source License

Declaration

public static long getStartOfToday() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

import java.util.TimeZone;

public class Main {
    public static long getStartOfToday() {
        Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("America/Los_Angeles"));
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        return cal.getTime().getTime();
    }//  ww w .j  a v a2s .  c o  m
}

Related

  1. getLastCalendarOfToday()
  2. getNDaysFromToday(int n)
  3. getSomedayAfterToday(int x)
  4. getStartOfDayRelative(int daysFromToday)
  5. getStartOfToday()
  6. getStringToday()
  7. getTimeNumberToday()
  8. getToday()
  9. getToday()