Here you can find the source of timestamp2Calendar(Timestamp ts)
public static Calendar timestamp2Calendar(Timestamp ts)
//package com.java2s; /**/*from ww w . ja v a 2 s . c om*/ * Copyright © 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; } }