Thread: System Time Class

  1. #1
    JBravo
    Guest

    Question System Time Class

    Hi All,
    Does anyone know of a C# class for retrieving the system time?
    Thanks for your help,
    Donal

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    DateTime is the struct that is used for time/date manipulations. The struct has a static member function called Now which returns the system date and time in said structure.

    DateTime t = DateTime.Now();
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    JBravo
    Guest
    Thanks nvoigt,
    Just what i needed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM
  2. Time for a new system....again
    By VirtualAce in forum Tech Board
    Replies: 6
    Last Post: 06-18-2007, 06:48 AM
  3. Need help with time
    By Gong in forum C++ Programming
    Replies: 7
    Last Post: 01-11-2007, 02:43 PM
  4. Replies: 3
    Last Post: 06-13-2005, 07:28 AM
  5. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM