DateTimeType ct;
Char Displaydate[10];
SystemPreferencesType sysPrefs;
PrefGetPreferences(&sysPrefs);
DateToAscii( ct.month, ct.day, ct.year, dfMDYWithSlashes, Displaydate );
-Rus
>���Cambio informaci�n, por llamadas baratas... !!! :). Prueba con:
>
>#include <Pilot.h>
>#include <Preferences.h>
>
>void SystemLoadPrefs(void)
>{
> SystemPreferencesType sysPrefs;
> DateTimeType dateTime;
>
> PrefGetPreferences (&sysPrefs);
>
> // Obtiene los formatos de fechas de system preferences.
> TimeFormat = sysPrefs.timeFormat;
> LongDateFormat = sysPrefs.longDateFormat;
> ShortDateFormat = sysPrefs.dateFormat;
>
> DateFormat = (DateFormatType) PrefGetPreference (prefDateFormat);
> AutoOffDuration=PrefGetPreference(prefAutoOffDuration);
>
> // Fecha del dia.
> TimSecondsToDateTime (TimGetSeconds (), &dateTime);
> Hoy.year = dateTime.year;
> Hoy.month = dateTime.month;
> Hoy.day = dateTime.day;
> Hoy.weekDay = dateTime.weekDay;
> Hoy.hour=dateTime.hour;
> Hoy.minute=dateTime.minute;
> Hoy.second=dateTime.second;
>}
>
>Si tienes dudas:
>
>Amadeu Dom�nech Estupiny�
>C/Catalpa,2
>La Floresta
>08198 Sant Cugat del Vall�s
>BARCELONA
>
>Tel: 93 589 89 84
>Movil: 619736813
>e-mail: [EMAIL PROTECTED] o [EMAIL PROTECTED]
>
>
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/