|
点击扳手
在空白处添加
LIB_GE_command_buffer_edit_insert LIB_CTRL_nc_header PROG_NUMBER PB_CMD_date date after @FIRST_LINE
#===============================
proc PB_CMD_date { } {
#==============================
global MOM_date
set date [clock format [clock seconds] -format "%Y-%m-%d %H:%M"]
set c [clock format [clock seconds] -format "%A"]
if {$c == "Monday"} {set c 一}
if {$c == "Tuesday"} {set c 二}
if {$c == "Wednesday"} {set c 三}
if {$c == "Thursday"} {set c 四}
if {$c == "Friday"} {set c 五}
if {$c == "Saturday"} {set c 六}
if {$c == "Sunday"} {set c 日}
MOM_output_literal "($date 星期$c)"
}
然后确定 保存就可以了
|
评分
-
查看全部评分
|