update myscript

get local current time function added