Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HarmonyOS
- /**
- * Obtain the expiration time in UTC format.
- * @param expectedExpiredTime: Transaction expiration time, in minutes.
- * @return: UTC time.
- */
- private static String getTradeExpireTime(int expectedExpiredTime) {
- SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
- formater.setTimeZone(TimeZone.getTimeZone("UTC"));
- Calendar calendar = Calendar.getInstance();
- calendar.set(Calendar.MINUTE, calendar.get(Calendar.MINUTE) + expectedExpiredTime);
- return formater.format(calendar.getTime());
- }
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.