Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1789
  • Last Modified:

CTime to Long

How can I convert a CTime variable to a long?
0
Rxd
Asked:
Rxd
1 Solution
 
vachoohoCommented:
CTime time = CTime::GetCurrentTime();
long lTime = (long)(time.GetTime());

GEtTime() will return time_t which is long integer by itself
YOu can safely cast it to long!

Hope this helps
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now