You Are Here:

Community: Developer Discussion Boards

#1 Old Random Time Generation - 2009-01-16, 19:03

Join Date: Sep 2008
Posts: 157
jselvakumar26071988
Offline
Regular Contributor
i want to generate a random time so i would send a msg....any idea?
Reply With Quote

#2 Old Re: Random Time Generation - 2009-01-16, 19:16

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
java.util.Random generates random numbers.
Reply With Quote

#3 Old Re: Random Time Generation - 2009-01-16, 20:15

Join Date: Sep 2008
Posts: 157
jselvakumar26071988
Offline
Regular Contributor
but how do i make it generate time(random)?
Reply With Quote

#4 Old Re: Random Time Generation - 2009-01-16, 20:30

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
What do you mean by "time"? Time is just a number...

Do you mean:

* a duration?

* a time-of-day?

* a date-and-time?

What are the limits within which you want the "time"?
Reply With Quote

#5 Old Thumbs up Re: Random Time Generation - 2009-01-17, 05:25

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Hi,
As you are specifically talking about the generation of the random time,there is nothing to dos so,As grahamhughes has described that time is just the number then just create the random number,so generate the random number and you can fulfill the need,

You can do one more thing is that you can take the system time. Then generate the random number and then add/minus that number with time..

please give more information about your requirement,


Thanks

R a j - The K e r n e l
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How to speak local time? Rafael T. Python 1 2008-03-14 06:18
Date & Time Editor in Form Resource. Kavit Patel General Symbian C++ 2 2008-03-03 07:26
Time is 1 hour off on Nokia 5300 Yuriy Mobile Java General 2 2008-02-24 22:09
Time Machine for Symbian Series 60 kedarchitale General Symbian C++ 2 2006-03-30 21:44
How to get correct time. dzaga Mobile Java General 2 2003-08-06 23:03

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia