Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Local time function

+1 vote
asked Mar 15 by 17_IT-B Shaivi Puranik (130 points)
I am trying to use the local time function, and but it wont work, and it shows a random time, and i have to submit this project in 1 hour, need help on how to fix this thanks!

1 Answer

0 votes
answered Mar 15 by Peter Minarik (63,140 points)
You didn't specify what programming language you're talking about and which function you're trying to use exactly.

If it's C/C++, probably this will help, there's an example toward the bottom of the page: https://www.cplusplus.com/reference/ctime/localtime/
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...