I’m having trouble in converting a unix time into GMT.
I have the following code, but I would like to know how to vice versa it.
public static String GetUnixTime()
{
Calendar calendar = Calendar.getInstance();
long now = calendar.getTimeInMillis();
return Long.toString(now);
}
Try this