Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I convert a Rogue Wave RWTime to a .NET DateTime?

Posted on 2008-06-19
2
Medium Priority
?
548 Views
Last Modified: 2012-05-05
I am working with code using an old Rogue Wave C++ library.  I am trying to write C++/CLI code to convert a RWTime for use by some C# code (.NET DateTime).  An RWTime can provide me the number of seconds since 1/1/1901.  How can I convert these seconds into a .NET DateTime?  If there is a better way I wouldn't mind hearing about that also.
0
Comment
Question by:Voltus_WoW
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 2000 total points
ID: 21828089
you can do something like:

DateTime dt = (new DateTime(1901,1,1)).AddSeconds(yourRWTime value here);
0
 

Author Comment

by:Voltus_WoW
ID: 21833314
That is exactly what I needed.  I didn't even see the AddSeconds() method.  All the examples on the web pointed me at TimeSpan.  Thanks for the help!
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question