List of utility methods to do Unix time
String | unixTimeToString(int time) Helper for CAST({timestamp} AS VARCHAR(n)). final StringBuilder buf = new StringBuilder(8); unixTimeToString(buf, time); return buf.toString(); |
String | unixTimeToString(int time, int precision) unix Time To String final StringBuilder buf = new StringBuilder(8); unixTimeToString(buf, time, precision); return buf.toString(); |
double | unixToGST(double unix) unix To GST 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; while (gst <= 0) { gst += 360; ... |
double | UnixToJulianDays(double unix) Unix To Julian Days return unix / 86400.0 + 2440587.5;
|