public class Common extends Object
| Constructor and Description |
|---|
Common() |
| Modifier and Type | Method and Description |
|---|---|
static long |
beginMonth(long time)
Calculate the timestamp for the beginning of month before time
if time is the beginning of month, return it. |
static int |
days(int month,
int year) |
static void |
main(String[] args) |
static long |
midNight(long time)
Calculate the timestamp of the midnight before time
If time is the midnight, return it. |
static int |
minutes(int seconds) |
static long |
secondsOfDay(long time) |
static long |
secondsOfHour(long time) |
static long |
secondsOfMonth(long time) |
static long |
startHour(long time)
Calculate the timestamp for the beginning of hour
|
static String |
UTCTime(long utcTime)
returns a string with the UTC time (hour,min,day,month,year)
|
public static long beginMonth(long time)
time - public static long midNight(long time)
time - public static long startHour(long time)
time - public static long secondsOfHour(long time)
time - public static long secondsOfDay(long time)
time - public static long secondsOfMonth(long time)
time - public static String UTCTime(long utcTime)
utcTime - public static int days(int month,
int year)
public static int minutes(int seconds)
public static void main(String[] args)
Copyright © 2025. All rights reserved.