ENHANCED: Reorder fields in time stamps so that (@<)/2 is meaningful.

This commit is contained in:
Markus Triska
2020-07-16 23:33:52 +02:00
parent 4f386b3e5e
commit 8668aee7fd
2 changed files with 3 additions and 1 deletions

View File

@@ -125,6 +125,8 @@ path_canonical(Ps, Cs) :-
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
T is the modification time of File.
T is a time stamp, suitable for use in format_time//2 in library(time).
For two time stamps A and B, if A precedes B, then A @< B holds.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
file_modification_time(File, T) :-

View File

@@ -5731,7 +5731,7 @@ impl MachineState {
let datetime: DateTime<Local> = system_time.into();
let mut fstr = "[".to_string();
let specifiers = vec!["d","m","Y","y","H","M","S","b","B","a","A","w","u","U","W","j","D","x","v"];
let specifiers = vec!["Y","m","d","H","M","S","y","b","B","a","A","w","u","U","W","j","D","x","v"];
for spec in specifiers {
fstr.push_str(&format!("'{}'=\"%{}\", ", spec, spec).to_string());
}