I’m accessing Paradox file by binary reading.
But I have a question. I don’t know what conversion should I to do from Time in Paradox Database:
- TimeSpan
- DateTime
- Or I should to convert to string
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
The
DateTimewill always has the date part.The
TimeSpanis most likely what you need. It can keep the hours, minutes… without date.EDIT: reaction to incorrect comment
Suggested mapping of the Time to DateTime is simply incorrect abstraction. Theny your C# property contains a date 01/01/0001 which is wrong (not intended) and also most be handled all the time you access such a property.
While
TimeSpan, can show exactly what we want: the time ellpased from the middnight. So if we do map time from DB type, this will provide us with out of the box functionality: can be loaded as time, can be stored as a time.