com.github.simkuenzi:cronext

croNext evaluates the next schedule time for a specified cron expression.

License

License

GroupId

GroupId

com.github.simkuenzi
ArtifactId

ArtifactId

cronext
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

jar
Description

Description

com.github.simkuenzi:cronext
croNext evaluates the next schedule time for a specified cron expression.
Project URL

Project URL

https://github.com/simkuenzi/cronext
Source Code Management

Source Code Management

https://github.com/simkuenzi/cronext

Download cronext

How to add to project

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

Dependencies

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.4.2

Project Modules

There are no modules declared in this project.

croNext

croNext evaluates the next schedule time for a specified cron expression.

CronExpr cronExpr = new CronExpr("4 19 2 12 ?");
LocalDateTime nextScheduleTime = cronExpr.next(LocalDateTime.of(2019, 2, 8, 17, 43));
System.out.println(nextScheduleTime);

The example writes the next schedule time after February 8th 2019, 17:43 to the console.

2019-12-02T19:04

Versions

Version
0.1