Here you can find the source of isDST(Timestamp ts)
Parameter | Description |
---|---|
ts | Timestamp |
public static boolean isDST(Timestamp ts)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import org.joda.time.DateTimeZone; public class Main { /**//from w w w. j a v a2s . co m * Whether we are in DST for a particular time in the servers default timezone. * Mostly used by Matlab. * @param ts Timestamp * @return boolean True or False */ public static boolean isDST(Timestamp ts) { return !DateTimeZone.getDefault().isStandardOffset(ts.getTime()); } }