Skip to content

Commit 460fe5e

Browse files
committed
ENH: Add ls -l short datetime format
1 parent d6c63bc commit 460fe5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

diff-logs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
r'\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:[.,]\d+)?Z?': '2111-11-11 11:11:11',
1414
r'\w{3,}, \d{1,2} \w{3,} \d{4,4} \d{1,2}(?::\d{1,2}){2} [A-Z]{3}': 'Thu, 11 Nov 2111 11:11:11 GMT',
1515
r'\d{2}-\d{2}-\d{4} \d{2}(?::\d{2}){2}\.\d+': '11-11-2111 11:11:11.111111',
16+
r'[A-Z][a-z]{2} [ \d]\d \d{2}:\d{2}': 'Nov 11 11:11', # `ls -l` format
1617
# Other timestamp
1718
r'\b\d+(?:\.\d+)?s(?:ec)?\b': '1.1s',
1819
r'\b(in|since) \d+\.\d+': 'in 1.1',

0 commit comments

Comments
 (0)