I am writing a new Java 8 project in a company. I suggested using the Java 8 API with a date, but one of my staff says the new time-based API is slow.
It's true? I also want to get official documentation from Oracle that will mention what you should not use java.util.Datein new projects.
java.util.Date
When it java.time.*was developed, this phrase was what I wanted to add to java.util.Date:
java.time.*
"This class is now effectively deprecated by the Time Framework for Java."
, . .
Oracle, java.util.Date. , Instant java.time.* java.util.Date.
Instant
Oracle
- , java.util.Date , Oracle java.time ( , , ).
java.time
Oracle Tutorials - , java.time.
, legacy.
, - .
, . , , java.util.Date java.time.Instant. java.time , , , .
java.time.Instant
java.time , , .
, , . : " ".
Source: https://habr.com/ru/post/1681185/More articles:Limit for hashing nested tuples? - pythonCant inserts row into database due to single quotation mark - phpAngular2. How to check if the observation is completed? - angularEditing Cubemap Skybox from a remote image - c #Automatically add HasCallStack restrictions for all my functions - haskellКак отключить уведомления по всему миру в визуальном студийном коде - visual-studio-codeполучить тип данных столбца, используя pyspark - apache-spark? operator in C # does not compile for an unknown reason - c #Почему Python оценивает строки/числа как True в операциях if myNumber == True возвращает False? - pythonC ++ compilation new warning filter - c ++All Articles