Android Time Get getSystemTime()

Here you can find the source of getSystemTime()

Description

get System Time

Declaration

public static final String getSystemTime() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Calendar;

public class Main {
    public static final String getSystemTime() {
        Calendar c = Calendar.getInstance();
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String formattedDate = df.format(c.getTime());
        return formattedDate;
    }//from ww  w .j  av  a 2s  .  c o  m
}

Related

  1. getCurrentEpochTime()
  2. getCurrentTime()
  3. getDateTime()
  4. getLongTime()
  5. getRequestTime()
  6. getTime1()
  7. getTimeInMillis()
  8. getTimestamp()
  9. getUTCTime()