Android Year Offset Get getYear_Second2()

Here you can find the source of getYear_Second2()

Description

get Yea Second

Declaration

public static String getYear_Second2() 

Method Source Code

//package com.java2s;

import java.text.DateFormat;

import java.text.SimpleDateFormat;

public class Main {

    public static String getYear_Second2() {

        java.util.Date date1 = new java.util.Date();
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String timeStr2 = df.format(date1);
        return timeStr2;
    }/*from w ww.  j a v a  2  s.  c om*/
}

Related

  1. getOneYearAgo()
  2. yearDays(int y)
  3. getYearMonthDay1()
  4. getYearMonthDay2()
  5. getYear_Second1()