Lines Matching +refs:resolve +refs:shift
55 tz -> resolve(tz, secs)
227 resolve(name, seconds_from_zeroyear, utc_or_wall)
292 …attempt to resolve a TimezoneInfo for that date/time. If the time is ambiguous, AmbiguousTimezoneI…
293 …be returned. If the time doesn't exist, the clock will shift forward an hour, and try again, and i…
298 @spec resolve(String.t, non_neg_integer, :utc | :wall) :: TimezoneInfo.t |
300 def resolve(tzname, datetime, utc_or_wall \\ :wall) function
302 def resolve(name, seconds_from_zeroyear, utc_or_wall) function
343 This version of resolve/3 takes a timezone name as a string, and an Erlang datetime tuple,
344 …and attempts to resolve the date and time in that timezone. Unlike the previous clause of resolve/…
347 @spec resolve(Types.valid_timezone, Types.datetime, :utc | :wall) :: DateTime.t |
350 def resolve(tzname, {{y,m,d},{h,mm,s}} = datetime, utc_or_wall) function
353 case resolve(tzname, secs_from_zero, utc_or_wall) do
359 # We need to shift to the beginning of `tz`
392 def resolve(tzname, {{y,m,d},{h,mm,s,ms}}, utc_or_wall) function
394 case resolve(tzname, {{y,m,d},{h,mm,s}}, utc_or_wall) do
420 case resolve(name, secs, :utc) do
497 raise "cannot shift a datetime before the beginning of the gregorian calendar!"
596 resolve(full_name, secs, utc_or_wall)