Code: Select all
storenote $hand $notehand [strftime %d-%m-%Y@%H:%M] $notemsg 0
Code: Select all
storenote $hand $notehand [strftime %d-%m-%Y@%H:%M] $notemsg 0
Read about the storenote command in doc/tcl-commands.doc, then decide what argument you want the timestamp to be part of and include it in that argumentEctropian wrote:Any suggestions?
Code: Select all
Tcl error [pub_sendnote]: wrong # args: should be "lrange list first last"
Code: Select all
set notemsg [join [split [lrange $rest 1 [strftime %d-%m-%Y@%H:%M] end ]]]
lrange is for extracting a range of elements from a list. I think you mean linsert or lreplace, but first you need to make sure you're working with a valid list - which means you probably need to split that string of yours, do the list operation, then join the result. But if you want the timestamp to be the first word of the string you can skip all that and...Ectropian wrote:Code: Select all
set notemsg [join [split [lrange $rest 1 [strftime %d-%m-%Y@%H:%M] end ]]]
Code: Select all
set notemsg "[strftime %d-%m-%Y@%H:%M] $rest"
Code: Select all
set notemsg "[strftime %a%t%b%t%d%t%t%T%t%Z]- $rest"
Code: Select all
Note 2 From <from>: Wed Feb 18 03:09:13 EST - <from> <msg>