project on time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shahrukh
    New Member
    • Sep 2006
    • 4

    project on time

    Hello sir, I m going to make a project on time. When its executable file will be run, it will show a clock with the time in your system. Before starting it, I thought it better to take some ideas from you. I know how to display the current date, but i dont know how to extract minutes, seconds and hours from them, because for the nibble to be moved to the desired position i think that i must know each of them (hours, minutes and seconds) in separate variables. Can you suggest some idea for this problem? or you can also describe your thinking. I will be very thankful to u.


    Have a nice day!
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Yep, extract the date to a date class. Most date classes have "formatter" methods that allow you to create a date whose format matches that which you are pulling from the OS. Then you can extract all the info you want (all date classes should have methods to get the hours, minutes, and seconds, etc...).

    So I'd recommend you start Googling and decide which is the best for you.

    Comment

    Working...