Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8286929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:54:23+00:00 2026-06-08T11:54:23+00:00

Is there an established way to parse a string to a Time structure? What

  • 0

Is there an established way to parse a string to a Time structure?

What I would ideally like to do is the reverse of strftime(...), where instead of producing a string from a time struct and format string, I get a time struct from a string parsed according to the provided format string.

I would prefer not to add additional overhead by including a DateTime class such as that found in Boost or .NET

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:54:25+00:00Added an answer on June 8, 2026 at 11:54 am

    The corresponding method for parsing strings to struct tm * is strptime.

    Unfortunately this isn’t part of the standard C runtime library and doesn’t exist on e.g. windows, but you can reuse a BSD-licensed version, such as this one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to just know if there is a well-established standard way to ensure
I would like to know if there is any way we can see programatically
For the select menu plugin chosen.js , is there an established way to add
Is there an established or unofficial way of finding out if my application is
Just curious if there is an established best way to target child elements inside
Folks, what is the best way to kill an established connection from the shell
Is there a well-established way to share Ant targets between projects? I have a
I'm wondering if there is any well established way to fix browser inconsistencies with
I em sure there is an already established way to deal with projects on
Is there an established pattern for implementing undo/redo functionality in clojure or in fp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.