[#absl-FromTM] = xref:absl.adoc[absl]::FromTM :relfileprefix: ../ :mrdocs: Converts the `tm_year`, `tm_mon`, `tm_mday`, `tm_hour`, `tm_min`, and `tm_sec` fields to an `absl::Time` using the given time zone. See ctime(3) for a description of the expected values of the tm fields. If the civil time is unique (see `absl::TimeZone::At(absl::CivilSecond)` above), the matching time instant is returned. Otherwise, the `tm_isdst` field is consulted to choose between the possible results. For a repeated civil time, `tm_isdst != 0` returns the matching DST instant, while `tm_isdst == 0` returns the matching non‐DST instant. For a skipped civil time there is no matching instant, so `tm_isdst != 0` returns the DST instant, and `tm_isdst == 0` returns the non‐DST instant, that would have matched if the transition never happened. == Synopsis Declared in `<absl/time/time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Time.adoc[Time] FromTM( tm const& tm, xref:absl/TimeZone.adoc[TimeZone] tz); ---- == Return Value The absolute time corresponding to `tm` in `tz`. == Parameters [cols="1,4"] |=== | Name| Description | *tm* | The broken‐down time to convert. | *tz* | The time zone to convert in. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#