* snosniv <nivpa...@gmail.com>Ah, yes, we are in British summer time, I'll try again now we're in GMT (or UTC if you prefer).
| If I do this:
| set z {01/01/1970 00:00:00}
| set t3 [clock scan $z -format "%d/%m/%Y %H:%M:%S"]
| I get -3600 as the result, not zero?
| set z {01/01/1970 01:00:00}
| does return zero after conversion?
| Am I missing something?
Your local time zone. Check the -timezone argument for clock scan.
set t3 [clock scan $z -format "%d/%m/%Y %H:%M:%S" -timezone :UTC]
0
https://www.tcl-lang.org/man/tcl8.6/TclCmd/clock.htm#M10
R'
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (0 / 16) |
Uptime: | 01:17:34 |
Calls: | 6,669 |
Calls today: | 1 |
Files: | 12,217 |
Messages: | 5,338,506 |