7,762
社区成员
发帖
与我相关
我的任务
分享
'上午就显示上午,'下午就显示下午
Private Sub Form_Load()
Timer1.Interval = 1000
End Sub
Private Sub Timer1_Timer()
Form1.Caption = Format(Now, "YYYY-MM-DD hh:mm:ss AMPM")
End Sub
Private Sub Form_Load()
Show
Print Time
End Sub
Private Sub Timer1_Timer()
If Option1.Value = False Then
Cls
Show
Print Format(Time, "hh:nn:ss AM/PM")
Else
Show
Print Time
End If
End Sub