local dt = fe.add_text( "", 0, 0, fe.layout.width, 30 );fe.add_ticks_callback( this, "update_clock" );function update_clock( ttime ){ local now = date(); dt.msg = now.hour + ":" + now.min + ":" + now.sec;}
format("%02d", now.min )
now.min
Hey there, you can use the "format" function: http://www.squirrel-lang.org/doc/sqstdlib3.html#d0e2180So something like: Code: [Select]format("%02d", now.min ) instead of just Code: [Select]now.min should do what you want