[#absl-FromCivil]
= xref:absl.adoc[absl]::FromCivil
:relfileprefix: ../
:mrdocs:

Helper for TimeZone&colon;&colon;At(CivilSecond) that provides &quot;order&hyphen;preserving semantics&period;&quot; If the civil time maps to a unique time, that time is returned&period; If the civil time is repeated in the given time zone, the time using the pre&hyphen;transition offset is returned&period; Otherwise, the civil time is skipped in the given time zone, and the transition time is returned&period; This means that for any two civil times, ct1 and ct2, (ct1 &lt; ct2) &equals;&gt; (FromCivil(ct1) &lt;&equals; FromCivil(ct2)), the equal case being when two non&hyphen;existent civil times map to the same transition time&period;

== Synopsis

Declared in `&lt;absl&sol;time&sol;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Time.adoc[Time]
FromCivil(
    xref:absl/CivilSecond.adoc[CivilSecond] ct,
    xref:absl/TimeZone.adoc[TimeZone] tz);
----

== Description

Note&colon; Accepts civil times of any alignment&period;

== Return Value

The absolute time corresponding to `ct` in `tz`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ct*
| The civil time to convert&period;
| *tz*
| The time zone to convert in&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
