tcl - set date to 90 days from current unix timestamp -


hi want set future_date variable show date 90 days today.

set $future_date "" #set $future_date date in unixtime stamp 90 days current timestamp 

can in tcl?

in tcl, clock seconds command returns time in term of seconds. add 90 days it, have multiply 90 60 (seconds in minute), 60 (minutes in hour) , 24 (hours in day):

set today [clock seconds] set future [expr {$today + 90 * 60 * 60 * 24}] puts [clock format $today -format "today %b %m, %y"] puts [clock format $future -format "90 days today %b %m, %y"] 

please clock command more information.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -