Java Timestamp Convert To toCalendar(Timestamp timestamp)

Here you can find the source of toCalendar(Timestamp timestamp)

Description

to Calendar

License

Apache License

Declaration

public static Calendar toCalendar(Timestamp timestamp) 

Method Source Code

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

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {

    public static Calendar toCalendar(Timestamp timestamp) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(timestamp);/*w ww .  j  a  v a  2 s .c o m*/
        return cal;
    }
}

Related

  1. timestampToTicks(int year, int month, int day, int hours, int minutes, int seconds, int milliseconds)
  2. to_timestamp(String date)
  3. toCalendar(final Timestamp ts)
  4. toCalendar(java.sql.Timestamp stamp)
  5. toCalendar(Timestamp stamp)
  6. toDate(java.sql.Timestamp timestamp)
  7. toDate(Timestamp timestamp)
  8. toDateTime(Timestamp value)
  9. toDecimal(Timestamp instant)