Android Date Time Get currentTimeLabel()

Here you can find the source of currentTimeLabel()

Description

Returns label for current time.

Return

label for current time.

Declaration

public static String currentTimeLabel() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private final static SimpleDateFormat formatter = new SimpleDateFormat(
            "dd/HH:mm:ss");

    /**//from ww w. j a v a 2 s .c o  m
     * Returns label for current time.
     * 
     * @return label for current time.
     */
    public static String currentTimeLabel() {
        return formatter.format(new Date(System.currentTimeMillis()));
    }
}

Related

  1. getCurrentDate(String time)
  2. getCurrentDate(long time)
  3. getDatetime()
  4. isNight()
  5. getDateDifference(Date thenDate)
  6. currentTimeToString(int format, String delimiter)
  7. getDate()
  8. getDate()