Java UTC Date utcTimestamp(Date date)

Here you can find the source of utcTimestamp(Date date)

Description

utc Timestamp

License

Apache License

Declaration

public static String utcTimestamp(Date date) 

Method Source Code


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

import java.text.SimpleDateFormat;
import java.util.Date;

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

    public static String utcTimestamp(Date date) {
        return UTF_DATE_FORMAT.format(date);
    }//from w  w w.j  av a2s  .com
}

Related

  1. stringToUTC(String utc)
  2. toUTCDate(String dateStr)
  3. toUTCString(Date date)
  4. toUTCString(long t)
  5. utcTime(Locale locale)
  6. utcTimeToString(String dateStr)
  7. utcToDate(String utcTimestamp)
  8. utcToLocal(Date date)
  9. utcTolocal(String utc)