Skip to content

Commit

Permalink
First Tag release
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewkirk committed Jan 23, 2025
1 parent 4dbd490 commit 5ad3158
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PackageDescription

let package = Package(
name: "SunKit",
platforms: [.iOS(.v17)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SunKit

A Swift toolkit to calculate the various times associated with Sunrise and Sunset.
2 changes: 1 addition & 1 deletion Sources/SunKit/SunKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public struct SunKit {
self.calendar = calendar
}

public func monkey(_ date: Date) -> Sun {
public func monkey(_ date: Date = Date.now) -> Sun {
let dayOfTheYear = Double(calendar.ordinality(of: .day, in: .year, for: date)!)
let longitudinalHour = coordinate.longitude / 15
let risingSunPosition = calculcateSunPosition(isSunrise: true, dayOfTheYear: dayOfTheYear, longitudinalHour: longitudinalHour)
Expand Down

0 comments on commit 5ad3158

Please sign in to comment.