Advanced Search. There's a function I think it's time that will actually return that structure filled with the current information. Remember Me? Thread: how to get system date.
And tm might be typedef'ed - I'm not sure, so just be aware. Last edited by swoopy; at PM. Similar Thre calculate age from date By bazzano in forum C Programming. By the way, here's an example of how to use strftime.
There are then numerous formatting functions you can use. Replies: 1 Last Post:AM. Replies: 4 Last Post:PM. Replies: 5 Last Post:PM. Replies: 3 Last Post:PM. All times are GMT The time now is AM. All rights reserved. And before posting code, please read the sticky at the top of the C forum regarding posting code, and learn how to use code tags.
You'll want to use the functions in time. Here's a simple example.
Well, that's a data structure for holding time information.