Android Timestamp to Calendar Convert Timestamp2Calendar(Timestamp ts)

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

Description

Timestamp Calendar

Declaration

public static Calendar Timestamp2Calendar(Timestamp ts) 

Method Source Code

//package com.java2s;
import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    public static Calendar Timestamp2Calendar(Timestamp ts) {
        Calendar c = Calendar.getInstance();
        c.setTime(ts);// w w w . j  ava  2s  .c o m
        return c;
    }
}