libcalendar 0.1.0 copy "libcalendar: ^0.1.0" to clipboard
libcalendar: ^0.1.0 copied to clipboard

outdated

Calendar Conversion Library for Dart.

example/libcalendar_example.dart

import 'package:libcalendar/libcalendar.dart';

void main() {
  // September 7th, 2010 in Gregorian.
  const int year = 2010;
  const int month = 9;
  const int day = 7;

  // Convert to CJDN.
  final int cjdn = fromGregorianToCJDN(year, month, day);
  print('September 7th, 2010 in CJDN: $cjdn');

  // Convert to Islamic.
  final DateTime islamic = fromGregorianToIslamic(year, month, day);
  print('September 7th, 2010 in Islamic: ${islamic.day}/${islamic.month}/${islamic.year}');
}
3
likes
0
points
24
downloads

Publisher

verified publisherzulfahmi.dev

Weekly Downloads

Calendar Conversion Library for Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

logging, meta

More

Packages that depend on libcalendar