How to get current time in Vc++ RRS feed

  • Question

  •  How to get current datetime in Vc++ in the format of current locale?

     Thanks in advance.

    - Rupesh
    Saturday, November 15, 2008 5:01 PM


  • Look up "Time Management" in the compiler help.

    localtime, _localtime32, _localtime64
    localtime_s, _localtime32_s, _localtime64_s
    asctime, _wasctime, asctime_s, _wasctime_s
    ctime, _ctime32, _ctime64, _wctime, _wctime32, _wctime64
    ctime_s, _ctime32_s, _ctime64_s, _wctime_s, _wctime32_s, _wctime64_s
    time, _time32, _time64
    strftime, wcsftime, _strftime_l, _wcsftime_l
    _strtime_s, _wstrtime_s

    GetSystemTime(), etc.

    - Wayne

    • Proposed as answer by ildjarn Monday, November 17, 2008 7:25 PM
    • Marked as answer by jack 321 Wednesday, November 19, 2008 6:19 AM
    Saturday, November 15, 2008 6:58 PM