Results 1 to 2 of 2

Thread: How can i get system time?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    1

    Question How can i get system time?

    I'm tring to make a TV Schedule program and i was wondering if anybody know how to get the system date and time and then check it against a list of dates and times.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    What I always do is:
    If I want to know a date. I simply declare a date var.
    Dim varname as Date

    and then

    varname = Date
    varname contains now the date

    For the time:
    Dim hours as long, minutes as long, seconds as long
    hours = hour(now)
    minutes = minute(now)
    seconds = second(now).

    I don't know If this is what you meant. Otherwise, explain and I'll try again.

Posting Permissions

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



Click Here to Expand Forum to Full Width