MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / update_oldest_change

Method update_oldest_change

atomic-core/src/record/builder.rs:392–398  ·  view source on GitHub ↗

Update the oldest modification time if this is older. # Arguments `time` - The file modification time

(&mut self, time: SystemTime)

Source from the content-addressed store, hash-verified

390 ///
391 /// * `time` - The file modification time
392 pub fn update_oldest_change(&mut self, time: SystemTime) {
393 if self.oldest_change == SystemTime::UNIX_EPOCH
394 || (time > SystemTime::UNIX_EPOCH && time < self.oldest_change)
395 {
396 self.oldest_change = time;
397 }
398 }
399
400 /// Get the oldest modification time.
401 pub fn oldest_change(&self) -> SystemTime {

Callers 1

Calls

no outgoing calls

Tested by 1