I have a Timestamp object in which the value is written
<DateTimeCalc>2019-03-18T03:00:00+03:00</DateTimeCalc> How to do so in order to understand that GMT is an empty time of 00:00:00 GMT, that is, without an offset, in order to handle this case?
public boolean isManualCalc(Timestamp timestamp) { return timestamp.getHours() == 0 && timestamp.getMinutes() == 0 && timestamp.getSeconds() == 0; } But, this code does not consider offsets. How to extract offset from timestamp so that timestamp.getHours () - the shift returned zero?
Potentially I can send values
<DateTimeCalc>2019-03-18T02:00:00+02:00</DateTimeCalc> <DateTimeCalc>2019-03-18T05:00:00+05:00</DateTimeCalc> and so on