Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'將秒數轉為時間
Dim y = 10000
Dim sec = y Mod 60
Dim minute = y \ 60 Mod 60
Dim hour = y \ 3600
MsgBox(hour & ":" & minute & ":" & sec)
End Sub
End Class
沒有留言:
張貼留言