java - Converting the required time to UTC -
i have string time in such format: 14:30
, , need convert utc correctly make selections database. here code current time in utc:
simpledateformat dateformat = new simpledateformat("yyyy-mmm-dd hh:mm:ss"); dateformat.settimezone(timezone.gettimezone("utc")); system.out.println(dateformat.format(new date()));
- how convert
14:50
utc (not current time), if relates utc+6 timezone? - i'm using sqlite ,
time('now')
in database query. time returned function compared time got in first point?
thank advice.
Comments
Post a Comment