Azure / Azure/azure-libraries-for-java

Use ZonedDateTime for ISO-8601 timestamp types

Aperta
#424 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
customer-reported feature-request Mgmt
Lingua principale
Java
Stelle
97
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The ZonedDateTime type was introduced in Java 8 and is functionally equivalent to the Joda DateTime type. Joda itself recommends using the java.time types starting with Java SE 8.

It would be preferable to depend on standard Java implementations for handling ISO-8601 types, as modern Java applications are more and more depending on ZonedDateTime rather than joda libraries for time-related types. Java SE 7 has been end-of-life since April 2015, so I believe backward compatibility should not be a relevant concern anymore.

Example code which uses Joda DateTime:
`azure.activityLogs().defineQuery().startingFrom().endsBefore()`

The startingFrom() and endsBefore() methods accept a Joda DateTime as an argument.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

The issue identifies startingFrom() and endsBefore() as the affected methods and gives azure.activityLogs().defineQuery() as an entry point; begin by locating their signatures and callers. Determine the scope of replacing Joda DateTime with Java's ZonedDateTime, and confirm that the affected ISO-8601 APIs and their usage are consistently updated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Refactoring
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.