Skip to content

Commit 6c5b662

Browse files
Clarify units of offset in ScheduledTime (#430)
Clarify that offset is in milliseconds in ScheduledTime
1 parent 1ddf6d7 commit 6c5b662

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

worker/src/durable.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,11 @@ enum ScheduledTimeInit {
626626
Offset(f64),
627627
}
628628

629-
/// Determines when a Durable Object alarm should be ran, based on a timestamp or offset.
629+
/// Determines when a Durable Object alarm should be ran, based on a timestamp or offset in milliseconds.
630630
///
631631
/// Implements [`From`] for:
632-
/// - [`Duration`], interpreted as an offset.
633-
/// - [`i64`], interpreted as an offset.
632+
/// - [`Duration`], interpreted as an offset (in milliseconds).
633+
/// - [`i64`], interpreted as an offset (in milliseconds).
634634
/// - [`DateTime`], interpreted as a timestamp.
635635
///
636636
/// When an offset is used, the time at which `set_alarm()` or `set_alarm_with_options()` is called

0 commit comments

Comments
 (0)