Code Sample |
execute("date +\"tmp_date = {%Y,%m,%d,%H,%M}\" >/tmp/datetool.tmp") dofile("/tmp/datetool.tmp") remove("/tmp/datetool.tmp") |
Code Sample |
year_input.value=tmp_date[1] month_input.value = format("%02u",tmp_date[2]) day_input.value = format("%02u",tmp_date[3]) hour_input.value = format("%02u",tmp_date[4]) min_input.value = format("%02u",tmp_date[5]) |