com.github.alvaro72:period

Support library to deal with time periods (Week, Year, Quarter, etc...).

Лицензия

Лицензия

Группа

Группа

com.github.alvaro72
Идентификатор

Идентификатор

period
Последняя версия

Последняя версия

0.9.35
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.github.alvaro72:period
Support library to deal with time periods (Week, Year, Quarter, etc...).
Ссылка на сайт

Ссылка на сайт

https://github.com/alvaro72/period
Система контроля версий

Система контроля версий

https://github.com/alvaro72/period

Скачать period

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.alvaro72/period/ -->
<dependency>
    <groupId>com.github.alvaro72</groupId>
    <artifactId>period</artifactId>
    <version>0.9.35</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.alvaro72/period/
implementation 'com.github.alvaro72:period:0.9.35'
// https://jarcasting.com/artifacts/com.github.alvaro72/period/
implementation ("com.github.alvaro72:period:0.9.35")
'com.github.alvaro72:period:jar:0.9.35'
<dependency org="com.github.alvaro72" name="period" rev="0.9.35">
  <artifact name="period" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.alvaro72', module='period', version='0.9.35')
)
libraryDependencies += "com.github.alvaro72" % "period" % "0.9.35"
[com.github.alvaro72/period "0.9.35"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter-engine jar 5.5.2

Модули Проекта

Данный проект не имеет модулей.

period

Java library for working with periods between dates.

Maven

For use with maven add this dependency.

    <dependency>
      <groupId>com.github.alvaro72</groupId>
      <artifactId>period</artifactId>
      <version>0.9.35</version>
    </dependency>

Examples

Create a Quarter:

Calendar cal = Calendar.getInstance();
cal.set(2018, 1, 31);
Quarter quarter = new Quarter(cal.getTime()); // First Quarter of 2018
Quarter nextQuarter = quarter.next();         // Second Quarter of 2018
Quarter previousQuarter = quarter.previous(); // Fourth Quarter of 2017

Create a Semester:

Calendar cal = Calendar.getInstance();
cal.set(2018, 1, 31);
Semester semester = new Semester(cal.getTime()); // First Semester of 2018
Semester nextSemester = semester.next();         // Second Semester of 2018
Semester previousSemester = semester.previous(); // Second Semester of 2017

Версии библиотеки

Версия
0.9.35
0.9.34
0.8.2