Skip to content

Commit b67ce6d

Browse files
Update ext/ReactantDatesExt/accessors.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b131ded commit b67ce6d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ext/ReactantDatesExt/accessors.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ yearmonthday(dt::Union{ReactantDate,ReactantDateTime}) = Dates.yearmonthday(days
5252
# The algorithm is identical to Dates/src/accessors.jl (proleptic Gregorian calendar)
5353
# These versions replace ternary operators with `flds` and `divs`
5454
function Dates.yearmonthday(days::Reactant.TracedRNumber)
55-
z = days + 306;
56-
h = 100z - 25;
57-
a = fld(h, 3652425);
55+
z = days + 306
56+
h = 100z - 25
57+
a = fld(h, 3652425)
5858
b = a - fld(a, 4)
5959
y = fld(100b + h, 36525);
6060
c = b + z - 365y - fld(y, 4);

0 commit comments

Comments
 (0)