-
Return the current date as a String depending on a query.
The query can be passed for the whole date or for it's part:
- FULL - current date as a whole: year, month, day of month
formatted as
YYYY-MM-DD
(a default return value); - YEAR - current year;
- MONTH - name of the current month;
- DAY - current day of month; In any other case throw DateTimeException.
- FULL - current date as a whole: year, month, day of month
formatted as
-
Given an Array of 3 elements, where - 1-st element is a
year
; - 2-nd element is smonth
; - 3-rd element is aday of month
;Return Optional of a date built from these elements.
-
Given the time and the number of hours to add, return the changed time.
-
Given the time and the number of minutes to add, return the changed time.
-
Given the time and the number of seconds to add, return the changed time.
-
Given the date and the number of weeks to add, return the changed date.
-
Given a random
someDate
date, return one of the following Strings: - "someDate
is aftercurrentDate
" - ifsomeDate
is in the future relating to thecurrent date
; - "someDate
is beforecurrentDate
" - ifsomeDate
is in the past relating to thecurrent date
; - "someDate
is today" - ifsomeDate
is today; -
Given a String representation of a date and some timezone, return LocalDateTime in this timezone.
-
Given some LocalDateTime, return an OffsetDateTime with the local time offset applied (
+02:00
for Ukraine).Example: we receive a LocalDateTime with a value
2019-09-06T13:17
.
We should return the OffsetDateTime with a value2019-09-06T13:17+02:00
,
where+02:00
is the offset for our local timezone.OffsetDateTime is recommended to use for storing date values in a database.
-
Given a String formatted as
yyyymmdd
, return Optional of this date as a LocalDate. -
Given a String formatted as
d MMM yyyy
(MMM - Sep, Oct, etc), return Optional of this date as a LocalDate. -
Given some LocalDateTime, return a String formatted as
day(2-digit) month(full name in English) year(4-digit) hours(24-hour format):minutes
.Example: "01 January 2000 18:00".
jv-date-time-api's Introduction
jv-date-time-api's People
Forkers
nvkaip romanminevich joej0e kenu21 andreydma tatianapirch valdes2 tarashryts kmety p1q tarasulo skaterweather gkhrshch tarabarnik sviatoslavexpert rostykrosolovskyi mykolakatsai ruslan-simakov programmer28 yarikj syevtushok dmytro-hryhoruk karsv alexandersashchenko romandubovskyi elvennurse riptod sergiyageev blakh706 graveman13 ddemonz ivankrivoruchkohub alinapodoliaka iegorsoboliev mykhaylo12 mrnopi julianevinska tarabandmitry prox1k merkald maks45 maksymvakuliuk filipp888 serhii-maksymov nikolayabysov andrewmazyar vinglish zubenkohalyna irinadyakonova kseniiamakarova maksymmatuliak serg-ksv vladpetrovskyi tanchak123 anastasiiakosiak nastiafasova 6allika vladyslav0711 oleh888 kaijou88 krohigor vbortnyk andrii-kutil vovkandrew bogdan-demianchuk djeckkenni marberyua vztot olehedza vasylnyzhnyk woododocode allduiin springway interami rludchenko sumned andrewlinkii matrix880 petrukillya alexeybavika javadeva rommelua andromash andriylagun pavlokhomiak michaelshevchenko floriangeyer21 romanhreits kovalalexey ilya449 victoria-moiseienko analanda alkey dmgrt borisko130 matviichuk92 maliukdaria voloshynamaryna11 fyarkiy tkhambirRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.