Skip to content

Commit

Permalink
changed method names per @ugexe's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrowder committed Apr 2, 2021
1 parent 6841ed5 commit 457925e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core.c/DateTime.pm6
Expand Up @@ -405,12 +405,12 @@ my class DateTime does Dateish {
$sec / (24.0 * 60 * 60)
}

method mjd(DateTime:D: --> Real:D) {
method modified-julian-date(DateTime:D: --> Real:D) {
self.daycount + self.day-fraction
}

method juliandate(DateTime:D: --> Real:D) {
self.mjd + 2_400_000.5
method julian-date(DateTime:D: --> Real:D) {
self.modified-julian-date + 2_400_000.5
}

method posix(DateTime:D: $ignore-timezone? --> Int:D) {
Expand Down

0 comments on commit 457925e

Please sign in to comment.