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())); 
  1. how convert 14:50 utc (not current time), if relates utc+6 timezone?
  2. i'm using sqlite , time('now') in database query. time returned function compared time got in first point?

thank advice.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -