CurryInfo: time-3.0.0 / Data.Time.addYears

definition:
addYears :: Int -> ClockTime -> ClockTime
addYears n ctime = if n==0 then ctime else
  let CalendarTime y mo d h mi s tz = toUTCTime ctime
   in toClockTime (CalendarTime (y+n) mo d h mi s tz)
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- Adds years to a given time.
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_) |-> _}
name:
addYears
precedence:
no precedence defined
result-values:
_
signature:
Prelude.Int -> ClockTime -> ClockTime
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms