[#absl-ConvertDateTime] = xref:absl.adoc[absl]::ConvertDateTime :relfileprefix: ../ :mrdocs: Legacy version of `absl::TimeZone::At(absl::CivilSecond)` that takes the civil time as six, separate values (YMDHMS). == Synopsis Declared in `<absl/time/time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use `absl::TimeZone::At(CivilSecond)`.")]] xref:absl/TimeConversion.adoc[TimeConversion] ConvertDateTime( int64_t year, int mon, int day, int hour, int min, int sec, xref:absl/TimeZone.adoc[TimeZone] tz); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: Use `absl::TimeZone::At(CivilSecond)`.. Use of this entity is allowed but discouraged. ==== == Description The input month, day, hour, minute, and second values can be outside of their valid ranges, in which case they will be "normalized" during the conversion. Example: // "October 32" normalizes to "November 1". absl::TimeConversion tc = absl::ConvertDateTime(2013, 10, 32, 8, 30, 0, lax); // tc.kind == TimeConversion::UNIQUE && tc.normalized == true // absl::ToCivilDay(tc.pre, tz).month() == 11 // absl::ToCivilDay(tc.pre, tz).day() == 1 Deprecated. Use `absl::TimeZone::At(CivilSecond)`. == Return Value The conversion result for the given civil time in `tz`. == Parameters [cols="1,4"] |=== | Name| Description | *year* | The civil‐time year. | *mon* | The civil‐time month. | *day* | The civil‐time day. | *hour* | The civil‐time hour. | *min* | The civil‐time minute. | *sec* | The civil‐time second. | *tz* | The time zone to convert in. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#