Java Time Now getNowDayTimeLong()

Here you can find the source of getNowDayTimeLong()

Description

get Now Day Time Long

License

Open Source License

Declaration

public static Long getNowDayTimeLong() throws Exception 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    private static SimpleDateFormat sdFormatDay = new SimpleDateFormat("yyyy-MM-dd");

    public static Long getNowDayTimeLong() throws Exception {
        String nowDay = sdFormatDay.format(new Date());
        return sdFormatDay.parse(nowDay).getTime();
    }//  w w  w .  ja  va 2s  .  co  m
}

Related

  1. getNowDateTime()
  2. getNowDateTime()
  3. getNowDateTime()
  4. getNowDateTime(String strScheme)
  5. getNowDateTimeStrConcise()
  6. getNowDefault()
  7. getNowFileFormat()
  8. getNowFormatLog()
  9. getNowFormattedDateTimeStr(String pattern)