All Forums
 Microsoft Windows CE
 General CE
 time() and wce_time()
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

Tim

39 Posts

Posted - 27 Mar 2007 :  13:27:41  Show Profile  Email Poster
On older versions of CE i had to use wce_time() in place of time(). Now with CE 5.0, neither will compile/link successfully. Using wce_time() is undefined and using time() is unresolved.

What should I use with CE 5.0?

Edited by - Tim on 27 Mar 2007 13:28:09

beitman

63 Posts

Posted - 27 Mar 2007 :  14:37:56  Show Profile  Email Poster
GetSystemTime() and GetLocalTime() are the WIN32 APIs for getting the time on a Windows CE device.
Go to Top of Page

Tim

39 Posts

Posted - 27 Mar 2007 :  15:39:57  Show Profile  Email Poster
GetSystemTime and GetLocalTime return a struct which doesn't suit my purpose. time() returns a time_t value. So I need the equivalent of time() under CE. Any other ideas?
Go to Top of Page

ctacke

877 Posts

Posted - 27 Mar 2007 :  16:30:16  Show Profile  Email Poster
We've got just the thing: http://www.opennetcf.com/time_t
Go to Top of Page

vboccanfuso

30 Posts

Posted - 01 Jul 2008 :  17:08:41  Show Profile
Is there an equivalent in CE for the Win32 localtime function?

Link:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vccrt/html/4260ec3d-43ee-4538-b998-402a282bb9b8.htm
Go to Top of Page

ctacke

877 Posts

Posted - 01 Jul 2008 :  17:25:25  Show Profile  Email Poster
CE doesn't have any of the time_t implementation. The link above has an implementation.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000