Sign in to follow this  

filetime class

This topic is 3588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

is there a standard filetime class i can use? i want to feed it either windows or linux filetime and have it store it in a standard format. I may dump it in a file, i may just keep it as a struct/class. i am not sure how i will use it

Share this post


Link to post
Share on other sites
Sure. System.DateTime is usable from both Microsoft's .NET framework and the Mono implementation, which means you've got time goodness in C#, VB.NET or any other .NET language. If not using a .NET language, then please specify which one you are using.

Share this post


Link to post
Share on other sites
well you didn't specify language, but I'm guessing since it's cross platform, you're talking C++ (or possibly python?).

I don't think there's anything in the standard C++ library that can get the time from a file. you might be able to use the c stat function or a wrap a platform specific function such as GetFileInformationByHandle on win32.

in python you can use getmtime

Share this post


Link to post
Share on other sites

This topic is 3588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this