Timeserial

  • Thread starter Thread starter Supra
  • Start date Start date
S

Supra

ne 1 know how to ignore hour? using vb.net
the server sent msg to me:
Amsterdam.NL.EU.undernet.org 317 djanjo djanjo 9 1091798232 :seconds
idle, signon time
TextBox1.Text = TimeSerial(0, 0, 9) ===> 12:0:09 AM
this mean supra has been 9 second idle.......but i don't want hour
been showing

Amsterdam.NL.EU.undernet.org 317 djanjo djanjo 1954 1091798232 :seconds
idle, signon time
TextBox1.Text = TimeSerial(0, 0, 1954) ===> 12:32:34 AM
this mean supra has been 32 min :34 sec idle
but again i don't want hour been showing

Amsterdam.NL.EU.undernet.org 317 djanjo djanjo 1954 1091798232 :seconds
idle, signon time
TextBox1.Text = TimeSerial(0, 0, 5954) ===> 1:39:14 AM
i have been 1 hr:39 min:14 sec ............************** that fine
with me*********

does ne 1 know how to ingnore hour?
regards
 
hi nick ,
i solved probled using format.
ex: TextBox1.Text = Format(TimeSerial(0, 0, 5954), "hh:mm:ss") ==>
1hrs:39min:14 sec .................that fine
but TextBox1.Text = Format(TimeSerial(0, 0, 1954), " mm:ss") ==>
32min:34 sec

the timespan wouldn't do too much coding.
regards
 
Back
Top