Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Unhappy calculate number of days from time structure

    Hi I have a question with the Tz. I have the timezone configuration string as CST+6CDT,M3.2.0/02:00:00,M11.1.0/02:00:00.

    From the above conf string I need to get the number of days for M3.2.0 and M11.1.0 for the current year. Also I need to calculate the starting and ending of daylight savings in UTC secs(starting from 00:00:00 on January 1, 1970).

    I can get the current year using time function.

    Code in C-language... Any ideas please.. I need this pretty badly.

    Thanks in advance

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Show what you have tried already.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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