Set time

Set time

Postby Wolfgang Ciriack » Tue Feb 24, 2009 5:22 pm

Hi all,
is it possible to set the system time from within my app ?
(i am connected to an GPS system and want to have the same time on my handheld)
Best regards
Wolfgang Ciriack
Wolfgang Ciriack
 
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Re: Set time

Postby Antonio Linares » Wed Feb 25, 2009 12:17 am

Wolfgang,

Here you have a working example:
Code: Select all  Expand view  RUN

#include "FWCE.ch"

function Main()

   SetTime( 11, 15, 00, 00 ) // 11:15 (0 secs, 0 millisecs)

return nil
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Set time

Postby Wolfgang Ciriack » Wed Feb 25, 2009 7:00 am

Thanks Antonio, that is quite simple :D
Best regards
Wolfgang Ciriack
Wolfgang Ciriack
 
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 5 guests