[#BloombergLP-bsls-operator_minus-005]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::operator&hyphen;
:relfileprefix: ../../
:mrdocs:

Unary minus operators

== Synopses

Declared in `&lt;bsls&lowbar;timeinterval&period;h&gt;`

Return a `TimeInterval` value that is the negative of the specified `rhs` time interval&period; The behavior is undefined unless `LLONG&lowbar;MIN !&equals; rhs&period;seconds()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]
xref:BloombergLP/bsls/operator_minus-003.adoc[operator&hyphen;](xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval] const& rhs);
----

[.small]#xref:BloombergLP/bsls/operator_minus-003.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]
xref:BloombergLP/bsls/operator_minus-0a.adoc[operator&hyphen;](
    double lhs,
    xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval] const& rhs);
----

[.small]#xref:BloombergLP/bsls/operator_minus-0a.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]
xref:BloombergLP/bsls/operator_minus-0e.adoc[operator&hyphen;](
    xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval] const& lhs,
    double rhs);
----

[.small]#xref:BloombergLP/bsls/operator_minus-0e.adoc[_» more&period;&period;&period;_]#

Return the difference between the specified `lhs` and `rhs` intervals&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]
xref:BloombergLP/bsls/operator_minus-04.adoc[operator&hyphen;](
    xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval] const& lhs,
    xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval] const& rhs);
----

[.small]#xref:BloombergLP/bsls/operator_minus-04.adoc[_» more&period;&period;&period;_]#

== Return Value

* the negative of `rhs`
* difference of `lhs` and `rhs` as a `TimeInterval`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| right&hyphen;hand time interval
| *lhs*
| left&hyphen;hand seconds as `double`
|===


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