Lines Matching refs:stamp
226 sms_timestamp_now( SmsTimeStamp stamp ) in sms_timestamp_now() argument
233 stamp->data[0] = gsm_int_to_bcdi( local.tm_year % 100 ); in sms_timestamp_now()
234 stamp->data[1] = gsm_int_to_bcdi( local.tm_mon+1 ); in sms_timestamp_now()
235 stamp->data[2] = gsm_int_to_bcdi( local.tm_mday ); in sms_timestamp_now()
236 stamp->data[3] = gsm_int_to_bcdi( local.tm_hour ); in sms_timestamp_now()
237 stamp->data[4] = gsm_int_to_bcdi( local.tm_min ); in sms_timestamp_now()
238 stamp->data[5] = gsm_int_to_bcdi( local.tm_sec ); in sms_timestamp_now()
246 stamp->data[6] = gsm_int_to_bcdi( tzdiff >= 0 ? tzdiff : -tzdiff ); in sms_timestamp_now()
248 stamp->data[6] |= 0x08; in sms_timestamp_now()
252 sms_timestamp_to_tm( SmsTimeStamp stamp, struct tm* tm ) in sms_timestamp_to_tm() argument
256 tm->tm_year = gsm_int_from_bcdi( stamp->data[0] ); in sms_timestamp_to_tm()
259 tm->tm_mon = gsm_int_from_bcdi( stamp->data[1] ) -1; in sms_timestamp_to_tm()
260 tm->tm_mday = gsm_int_from_bcdi( stamp->data[2] ); in sms_timestamp_to_tm()
261 tm->tm_hour = gsm_int_from_bcdi( stamp->data[3] ); in sms_timestamp_to_tm()
262 tm->tm_min = gsm_int_from_bcdi( stamp->data[4] ); in sms_timestamp_to_tm()
263 tm->tm_sec = gsm_int_from_bcdi( stamp->data[5] ); in sms_timestamp_to_tm()
267 tzdiff = gsm_int_from_bcdi( stamp->data[6] & 0xf7 ); in sms_timestamp_to_tm()
268 if (stamp->data[6] & 0x8) in sms_timestamp_to_tm()