Skip to content

Commit

Permalink
Force leap-second data to be a constant Parcel.
Browse files Browse the repository at this point in the history
Should save a little bit of time, since now it's just a constant
table lookup.
  • Loading branch information
jnthn committed Sep 6, 2013
1 parent 044bd5b commit 9b49d83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/tai-utc.pm
Expand Up @@ -14,6 +14,7 @@ my module tai-utc {

# our @leap-second-dates = <
our sub leap-second-dates() {
BEGIN
#BEGIN leap-second-dates
<
1972-06-30
Expand Down Expand Up @@ -54,6 +55,7 @@ my module tai-utc {

# Ambiguous POSIX times.
our sub leap-second-posix() {
BEGIN
#BEGIN leap-second-posix
<
78796800
Expand Down

0 comments on commit 9b49d83

Please sign in to comment.