Java Date Now currentDateTime(long time, int type)

Here you can find the source of currentDateTime(long time, int type)

Description

current Date Time

License

Apache License

Declaration

private static int currentDateTime(long time, int type) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    private static int currentDateTime(long time, int type) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(time);/*from  w  ww  . j  a  v  a 2s  .  c o m*/
        return calendar.get(type);
    }
}

Related

  1. currentDateAsString()
  2. currentDatePath(String basePath)
  3. currentDateStr()
  4. currentDateStr(String format)
  5. currentDateString()
  6. currentDateTimeMillis()
  7. currentDateTimeToEasySortedDateTime()
  8. currentGMTDateTime()
  9. currentSystemDate()