Java Timestamp Field getDayOfTime(Timestamp timestamp)

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

Description

get Day Of Time

License

Open Source License

Declaration

public static int getDayOfTime(Timestamp timestamp) 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    public static int getDayOfTime(Timestamp timestamp) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(timestamp.getTime());
        return calendar.get(Calendar.DAY_OF_MONTH);
    }//from   www.jav a  2 s .  c  om
}

Related

  1. getDateTimeStr(Timestamp timestamp)
  2. getDateTimeString(java.sql.Timestamp ts)
  3. getDayBorder(Timestamp dateTime, Timestamp timeSlot, boolean end)
  4. getDayEnd(java.sql.Timestamp stamp, int daysLater)
  5. getDayOfMonthBy(Timestamp ts)
  6. getDayOfWeek(Timestamp timestamp)
  7. getDaysBetween(Timestamp start, Timestamp end)
  8. getDayStartTimestamp()
  9. getDayTime(Timestamp day, Timestamp time)