Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1724
  • 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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