2.0.2 • Published 9 months ago

rrule-rust v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

rrule-rust

npm version npm downloads/month npm downloads license

rrule-rust is a library for working with recurrence rules based on Rust's rrule crate

  1. Quick Start
  2. Performance

Quick Start

See test folder to find more use cases

  npm i rrule-rust
import { RRule, RRuleSet, Frequency, DateTime } from 'rrule-rust';

const rrule = new RRule({
  frequency: Frequency.Daily,
  count: 5,
});
const set = new RRuleSet({
  dtstart: DateTime.create(1997, 9, 2, 9, 0, 0, false),
  tzid: 'US/Eastern',
  rrules: [rrule],
});

const dates = set.all(); // [ DateTime, DateTime, DateTime, DateTime, DateTime ]
const asString = set.toString(); // DTSTART;TZID=US/Eastern:19970902T090000\nFREQ=daily;COUNT=5;BYHOUR=9;BYMINUTE=0;BYSECOND=0

Performance

  Host: MacBook Pro, 14-inch, 2023
  OS: macOS 14.4.1 (23E224)
  Processor: Apple M3 Pro
  Memory: 36 GB LPDDR5
rrulerrule-rust
UTC TZ15 904 ops/s108 538 ops/s~6x faster
Other TZ260 ops/s106 034 ops/s~400x faster

You can run benchmarks using npm run benchmark

License

rrule-rust is MIT licensed.

2.1.0-alpha.6

9 months ago

2.1.0-alpha.5

9 months ago

2.1.0-alpha.4

9 months ago

2.1.0-alpha.3

9 months ago

2.1.0-alpha.2

10 months ago

2.1.0-alpha.1

10 months ago

2.0.0-next.15

1 year ago

2.0.0-next.16

1 year ago

2.0.0-next.17

1 year ago

2.0.0-next.14

1 year ago

2.0.2

11 months ago

2.0.1-next.2

1 year ago

2.0.1-next.1

1 year ago

2.0.1

1 year ago

2.0.2-next.1

1 year ago

2.0.0

1 year ago

2.0.0-next.11

1 year ago

2.0.0-next.12

1 year ago

2.0.0-next.13

1 year ago

2.0.0-next.8

1 year ago

2.0.0-next.9

1 year ago

2.0.0-next.7

1 year ago

2.0.0-next.10

1 year ago

2.0.0-next.6

1 year ago

2.0.0-next.4

1 year ago

2.0.0-alpha.3

1 year ago

2.0.0-alpha.4

1 year ago

2.0.0-alpha.1

1 year ago

2.0.0-alpha.2

1 year ago

2.0.0-next.3

1 year ago

2.0.0-next.2

1 year ago

2.0.0-next.1

1 year ago

1.2.0

2 years ago

1.2.0-next.3

2 years ago

1.2.0-next.2

2 years ago

1.2.0-next.1

2 years ago

1.1.6-test.2

2 years ago

1.1.6-test.1

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.1

2 years ago

1.0.0

2 years ago

0.0.1-7

2 years ago

0.0.1-6

2 years ago

0.0.1-5

2 years ago

0.0.1-4

2 years ago

0.0.1-2

2 years ago

0.0.1-1

2 years ago