Here you can find the source of formatAtSAST(Instant instant, DateTimeFormatter format)
public static String formatAtSAST(Instant instant, DateTimeFormatter format)
//package com.java2s; //License from project: Open Source License import java.time.*; import java.time.format.DateTimeFormatter; public class Main { private static final ZoneId zoneSAST = ZoneId.of("Africa/Johannesburg"); public static String formatAtSAST(Instant instant, DateTimeFormatter format) { return instant.atZone(zoneSAST).format(format); }/*from w ww .j a v a2s .c o m*/ }