java - calendar serialization deserialization -
java - calendar serialization deserialization -
when serialize date on 1 pc1 , deserialize on pc2 local date of pc2. when same calendar instance? situation same or not?
date
represents point in time (number of milliseconds 1st of jan 1970). not confused time zone in date.tostring()
, serializing long
value wrapped in class.
calendar
on other hand represents date , time in given time zone. means if source computer in gmt+1 , target 1 in gmt+2, sending calendar
set gmt-6, gmt-6 way on both sides.
that beingness said much safer (and uses less bandwidth) send date
, allow every computer display using local time zone.
java datetime
Comments
Post a Comment