473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Timeserial

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

Jul 21 '05 #1
2 2040
Ever thought about using TimeSpan instead of TimeSerial?

"Supra" <su*****@rogers.com> wrote in message
news:Eg**********************@twister01.bloor.is.n et.cable.rogers.com...
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

Jul 21 '05 #2
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

Nick Malik wrote:
Ever thought about using TimeSpan instead of TimeSerial?

"Supra" <su*****@rogers.com> wrote in message
news:Eg**********************@twister01.bloor.is. net.cable.rogers.com...

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




Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Lapchien | last post by:
My table has a record called date/time - filled (not surprisingly) with a date and time. I can format the date in one query field, also the time, using format in an expression. My user wants me...
4
by: Shyguy | last post by:
I am working on an application in which the end user will enter a time, Say 3:00 PM, and a number, say 5 I want to create a number of records (5) as follows, 3:00:00 3:00:01 3:00:02 3:00:03...
2
by: Supra | last post by:
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)...
0
by: Farcot | last post by:
I compute timeby TimeSerial function TimeSerial(intTime / 100, intTime Mod 100, 0) I get 11:00:00 for intTime=1100. After daylight saving was changed to summer I start to get 12:00:00 for...
1
by: Tee GEE | last post by:
I included my VBA below. I would like to change the font of the "strBody" to be Bold, italic, color, etc. The code that I attempted to write is identified by ***. Any help would be appreciated....
6
by: Luvin lunch | last post by:
Hi, I'm new to access and am very wary of dates as I have limited experience in their manipulation and I know if they're not done properly things can turn ugly quickly. I would like to use a...
7
by: divya | last post by:
What is an equivalent TimeSerial() function of VBscript in the Java Script?? I have two variables hour and minutes. Timeserial(hour,minutes) returns the time hour : minutes. But I want to do...
29
by: Rickster66 | last post by:
Hey there, I have a reporting issue and any help is well appreciated. I have been requested to create a report based on cells (defined a groups of workers). So far, so good. The report is be be...
4
by: jrayjr | last post by:
Hello, I have a access query that reads in 2 time fields but its not in time format. Example: 900, 1300, 256, 2245, etc. What I am trying to do is driver comes in at 900(9:00AM) and leaves...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.