user3835935
user3835935

Reputation: 67

TCL: clock scan dd/mm/yy

Is there any way to to allow "clock scan" work with date: dd/mm/yy? I found it work only mm/dd/yy

To overcome this I had to swap between day & month but it's little bit ugly

Upvotes: 0

Views: 149

Answers (1)

glenn jackman
glenn jackman

Reputation: 246942

To expand on Schelte Bron's comment:

set d 31/12/22
clock format [clock scan $d]                   ;# => Fri Jul 12 00:00:00 EDT 2024
clock format [clock scan $d -format %d/%m/%y]  ;# => Sat Dec 31 00:00:00 EST 2022

Upvotes: 3

Related Questions