Code example for Time

Methods: format3339setswitchTimezone

0
			 
			if (command != null) {
				jsonNote.put("command", command);
			} 
			 
			Time time = new Time();
			time.set(note.getDateUpdate() * 1000);
			time.switchTimezone("GMT");
			 
			jsonNote.put("title", note.getTitle());
			jsonNote.put("note-content", note.getContent());
			jsonNote.put("last-change-date", time.format3339(false));
			jsonNote.put("latest-sync-revision", revision);
			jsonNoteChanges.put(0, jsonNote);
 
			jsonRequest.put("latest-sync-revision", revision);
			jsonRequest.put("note-changes", jsonNoteChanges);
			 
			// TODO: Response should be an object that contains status and response string 
			String response = httpPut(API_URL, jsonRequest.toString(), true);
Experience pair programming with AI  Get Codota for Java