Java Long Number to Time convertTimestampToUTCString(final long aTimestamp)

Here you can find the source of convertTimestampToUTCString(final long aTimestamp)

Description

convert Timestamp To UTC String

License

Apache License

Declaration

public static final String convertTimestampToUTCString(final long aTimestamp) 

Method Source Code


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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final SimpleDateFormat UTCSimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");

    public static final String convertTimestampToUTCString(final long aTimestamp) {
        return UTCSimpleDateFormat.format(new Date(aTimestamp));
    }//from ww  w .jav  a  2 s .  c o  m
}

Related

  1. convertTime(long time)
  2. convertTime(long time)
  3. convertTime(long value)
  4. convertTime(long x)
  5. convertTimestampToSec(long timestampInMs)
  6. convertTimeToInt(long seconds)
  7. convertTimeToString(final long time)
  8. convertTimeToString(final long timeInMillis)
  9. convertTimeUnit(long epochTime, String timeUnit)