[#BloombergLP-bdlt-DatetimeTz-gmtDatetime] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeTz.adoc[DatetimeTz]::gmtDatetime :relfileprefix: ../../../ :mrdocs: Return a `Datetime` object having the value of the UTC datetime represented by this object. Note that if `0 != offset()`, the returned value is equal to `localDatetime()` minus `offset()` minutes, and `localDatetime()` otherwise. == Synopsis Declared in `<bdlt_datetimetz.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Datetime.adoc[Datetime] gmtDatetime() const; ---- == Description DEPRECATED: replaced by `utcDatetime.` [.small]#Created with https://www.mrdocs.com[MrDocs]#