[#BloombergLP-bsls-TimeInterval-totalSeconds] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::totalSeconds :relfileprefix: ../../../ :mrdocs: Return this interval as whole seconds, rounded toward zero. == Synopsis Declared in `<bsls_timeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] totalSeconds() const; ---- == Description Return the value of this time interval as an integral number of seconds, rounded towards zero. Note that the return value may be negative. Also note that this method returns the same value as `seconds`. == Return Value this interval as an integral number of seconds, rounded towards zero [.small]#Created with https://www.mrdocs.com[MrDocs]#