french-revolutionary-calendar

Provides conversion between Gregorian calendar dates and French Revolutionary calendar dates. Also converts 24-hour time to decimal time. Reference: http://en.wikipedia.org/wiki/French_Republican_Calendar

License

License

GroupId

GroupId

ca.rmen
ArtifactId

ArtifactId

lib-french-revolutionary-calendar
Last Version

Last Version

1.8.2
Release Date

Release Date

Type

Type

jar
Description

Description

french-revolutionary-calendar
Provides conversion between Gregorian calendar dates and French Revolutionary calendar dates. Also converts 24-hour time to decimal time. Reference: http://en.wikipedia.org/wiki/French_Republican_Calendar
Project URL

Project URL

http://github.com/caarmen/french-revolutionary-calendar
Source Code Management

Source Code Management

https://github.com/caarmen/french-revolutionary-calendar.git

Download lib-french-revolutionary-calendar

How to add to project

<!-- https://jarcasting.com/artifacts/ca.rmen/lib-french-revolutionary-calendar/ -->
<dependency>
    <groupId>ca.rmen</groupId>
    <artifactId>lib-french-revolutionary-calendar</artifactId>
    <version>1.8.2</version>
</dependency>
// https://jarcasting.com/artifacts/ca.rmen/lib-french-revolutionary-calendar/
implementation 'ca.rmen:lib-french-revolutionary-calendar:1.8.2'
// https://jarcasting.com/artifacts/ca.rmen/lib-french-revolutionary-calendar/
implementation ("ca.rmen:lib-french-revolutionary-calendar:1.8.2")
'ca.rmen:lib-french-revolutionary-calendar:jar:1.8.2'
<dependency org="ca.rmen" name="lib-french-revolutionary-calendar" rev="1.8.2">
  <artifact name="lib-french-revolutionary-calendar" type="jar" />
</dependency>
@Grapes(
@Grab(group='ca.rmen', module='lib-french-revolutionary-calendar', version='1.8.2')
)
libraryDependencies += "ca.rmen" % "lib-french-revolutionary-calendar" % "1.8.2"
[ca.rmen/lib-french-revolutionary-calendar "1.8.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

French Revolutionary Calendar Library

Library providing conversion between Gregorian calendar dates and French Revolutionary calendar dates.

Also converts 24-hour time to decimal time.

Reference: http://en.wikipedia.org/wiki/French_Republican_Calendar

Library

To use this in your project:

Maven:

<dependency>
  <groupId>ca.rmen</groupId>
  <artifactId>lib-french-revolutionary-calendar</artifactId>
  <version>1.8.2</version>
  <type>pom</type>
</dependency>

Gradle:

compile 'ca.rmen:lib-french-revolutionary-calendar:1.8.2'

Usage:

FrenchRevolutionaryCalendar frc =
    new FrenchRevolutionaryCalendar(
            Locale.getDefault(),
            FrenchRevolutionaryCalendar.CalculationMethod.ROMME):

FrenchRevolutionaryCalendarDate frenchDate =
    frc.getDate((GregorianCalendar) Calendar.getInstance());

String text = "Today is " + frenchDate.getWeekdayName()
    + ", " + frenchDate.dayOfMonth
    + " " + frenchDate.getMonthName() + " " + frenchDate.year;

Command-line program

A command-line program is available.

Build it with: mvn clean package

Run it with java -jar ./cli/target/french-revolutionary-calendar-cli-1.8.2.jar

With no arguments, it will print out a usage text.

Examples:

Display the current time in the French Revolutionary Calendar:

$java -jar ./cli/target/french-revolutionary-calendar-cli-1.8.2.jar now
Quartidi, 04-Thermidor-225, 8:70:99, The plant:Ryegrass

Display an arbitrary date in the French Revolutionary Calendar:

$ java -jar ./cli/target/french-revolutionary-calendar-cli-1.8.2.jar g2f 1998-06-10
Parsing using format yyyy-MM-dd
Duodi, 22-Prairial-206, 0:00:00, The plant:Camomile

Versions

Version
1.8.2