ftpd::Session method file format date (protected)

 <instance of ftpd::Session[i]> file format date seconds

Defined in

Parameters:
seconds (required)

Testcases:
No testcase defined.
Source code:
set currentTime [clock seconds]
set oldTime [clock scan "6 months ago" -base $currentTime]
if {$seconds <= $oldTime} {
    set time [clock format $seconds -format "%Y"]
} else {
    set time [clock format $seconds -format "%H:%M"]
}
set day [string trimleft [clock format $seconds -format "%d"] 0]
set month [clock format $seconds -format "%b"]
return [format "%3s %2s %5s" $month $day $time]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: