This GitHub repo is the website for ThreeTen, accessed through http://www.threeten.org.
threeten / threeten.github.io Goto Github PK
View Code? Open in Web Editor NEWWebsite for ThreeTen organization
Home Page: http://threeten.github.io/
Website for ThreeTen organization
Home Page: http://threeten.github.io/
This GitHub repo is the website for ThreeTen, accessed through http://www.threeten.org.
Is there any future plan of something like JulianDateTime
? which implements ChronoLocalDateTime<JulianDate>
Thanks.
This is my work , but I don't know too much about ChronoLocalDateTime
... Not sure how to finish this work.
public class JulianDateTime implements Serializable {
private final JulianDate date;
private final LocalTime time;
private JulianDateTime(JulianDate date, LocalTime time) {
this.date = date;
this.time = time;
}
/**
* @param year maybe <= 0
*/
public static JulianDateTime of(int year, int month, int dayOfMonth, int hour, int minute , double second) {
JulianDate date = JulianDate.of(year , month , dayOfMonth);
Pair<Long , Long> pair = Time.splitSecond(second);
LocalTime time = LocalTime.of(hour , minute , pair.getLeft().intValue() , pair.getRight().intValue());
return new JulianDateTime(date , time);
}
/**
* @param year maybe <= 0
*/
public static JulianDateTime of(int year, int month, int dayOfMonth, int hour, int minute) {
return of(year , month , dayOfMonth , hour , minute , 0);
}
/**
* @param year maybe <= 0
*/
public static JulianDateTime of(int year, Month month, int dayOfMonth, int hour, int minute) {
return of(year , month.getValue() , dayOfMonth , hour , minute , 0);
}
public int getProlepticYear() {
return date.get(YEAR);
}
/** must be >= 0 */
public int getYear() {
return date.get(YEAR_OF_ERA);
}
public int getMonth() {
return date.get(MONTH_OF_YEAR);
}
public int getDayOfMonth() {
return date.get(DAY_OF_MONTH);
}
public int getHour() {
return time.getHour();
}
public int getMinute() {
return time.getMinute();
}
public double getSecond() {
return time.getSecond() + (time.getNano() / 1_000_000_000.0);
}
public JulianDate toLocalDate() {
return date;
}
public LocalTime toLocalTime() {
return time;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.