Java Timestamp Convert To timestamp2Calendar(Timestamp ts)

Here you can find the source of timestamp2Calendar(Timestamp ts)

Description

timestamp Calendar

License

Open Source License

Declaration

public static Calendar timestamp2Calendar(Timestamp ts) 

Method Source Code

//package com.java2s;
/**/*from   ww w .  ja v  a  2 s  .  c  om*/
 * Copyright &copy; 2012-2013 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {

    public static Calendar timestamp2Calendar(Timestamp ts) {
        Calendar c = Calendar.getInstance();
        c.setTime(ts);
        return c;
    }
}

Related

  1. convertToEpochMillis(java.sql.Timestamp ts)
  2. convertToISO8601String(java.sql.Timestamp ts)
  3. convertToString(Timestamp dateData, String pattern, Locale locale)
  4. timestamp(Timestamp timestamp)
  5. Timestamp2Arch(Timestamp ts)
  6. timestamp2Date(java.sql.Timestamp t)
  7. timestamp2Internal(java.sql.Timestamp t)
  8. timestamp2ToTimestamp(long seconds, int fraction, int width)
  9. timestampSqlToDate(Timestamp timestamp)