sunrise_sunset_calc 1.0.1

Dart native js
Flutter Android iOS web

Calculates sunrise and sunset time given latitude, longitude, timezone offset and date.

sunrise_sunset_calc #

Sunrise/Sunset calculation library ported from sunrisesunset

Usage #

A simple usage example:

import 'package:sunrise_sunset_calc/sunrise_sunset_calc.dart';

main() {
  var sunriseSunset = getSunriseSunset(60.0, 60.0, 1, DateTime.now());
  print("Sunrise is at: ${sunriseSunset.sunrise.toString()}");
  print("Sunset is at: ${sunriseSunset.sunset.toString()}");
}
1
likes
100
pub points
46%
popularity

Publisher

avtobiografia.com

Calculates sunrise and sunset time given latitude, longitude, timezone offset and date.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on sunrise_sunset_calc