Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[18.226.251.68] |
|
Сообщ.
#1
,
|
|
|
народ, а как время на палме синхронизовать....
посмотрел Conduit API, не нашел ничего... Может смотрел не туда |
Сообщ.
#2
,
|
|
|
мне хватает переодического запуска http://palmos.sources.ru/src/net/sntp.tar.gz
Но где то мелькало что при синхронизации можно отдать время - надо глянуть на исходники протокола (например в coldsync или pilot-xfer) |
Сообщ.
#3
,
|
|
|
SyncWriteSysDateTime
Purpose Sets the system date and time on the handheld. Compatibility HotSync version: All. Palm OS version: All. -------------------------------------------------------------------------------- IMPORTANT: Although this function is available in all versions of the Sync Manager API, it does not work properly in any version earlier than version 2.2. -------------------------------------------------------------------------------- Prototype long SyncWriteSysDateTime (long lDate); Parameters -> lDate A time_t value that specifies the system date and time value. This value must be in the format returned by the time function. Result If successful, returns 0. If unsuccessful, returns one of the following nonzero error code values: SYNCERR_COMM_NOT_INIT SYNCERR_LOST_CONNECTION SYNCERR_REMOTE_SYS SYNCERR_REMOTE_BAD_ARG If you call this function in a version of the Sync Manager API earlier than version 2.2, the SYNCERR_REMOTE_BAD_ARG error code is returned. For more information about the error codes, see "Sync Manager Error Codes." Comments You can use the SyncWriteSysDateTime function to set the current date and time on the handheld. In general, conduits should avoid changing the system date and time. The SyncWriteSysDateTime function does not notify applications on the handheld that it has changed the time. Some applications, such as the built-in datebook, need to know when the system time changes so that they can adjust their alarm settings. To work around this problem, you need to call the SyncRebootSystem function, which will cause a soft-reset of the handheld after the HotSync operation completes. All applications on the handheld are notified of the reset and can make any necessary adjustments. See Also The SyncReadSysDateTime function. |