[#BloombergLP-bdlmt-EventScheduler-rescheduleEvent-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/EventScheduler.adoc[EventScheduler]::rescheduleEvent
:relfileprefix: ../../../
:mrdocs:

Reschedule the event referred to by `handle` to `newEpochTime`&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;eventscheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
rescheduleEvent(
    xref:BloombergLP/bdlmt/EventScheduler/Event.adoc[Event] const* handle,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& newEpochTime);
----

== Description

Reschedule the event referred to by the specified `handle` at the specified `newEpochTime` truncated to microseconds&period; Return 0 on successful reschedule, and a non&hyphen;zero value if the `handle` is invalid _or_ if the event has already been dispatched&period; The `newEpochTime` is an absolute time represented as an interval from some epoch, which is determined by the clock indicated at construction (see &lcub;Supported Clock Types&rcub; in the component documentation)&period;

== Return Value

0 on successful reschedule, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *handle*
| event to reschedule
| *newEpochTime*
| new absolute time at which to dispatch the event
|===


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