Here you can find the source of unixToGST(double unix)
public static double unixToGST(double unix)
//package com.java2s; //License from project: Apache License public class Main { public static double unixToGST(double unix) { double jd = UnixToJulianDays(unix); double t = (jd - 2451545.0) / 36525.0 + 0.0005; double gst = 280.46061837 + 360.98564736629 * (jd - 2451545.0) + t * t * (0.000387933 - t / 38710000.0); while (gst >= 360) { gst -= 360;/*w w w .j a v a 2 s . co m*/ } while (gst <= 0) { gst += 360; } return gst; } public static double UnixToJulianDays(double unix) { return unix / 86400.0 + 2440587.5; } }