yy1717
2020-02-26 6a4170f11d7cd8cb0ba2f4078aa23d1733c4a4f1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Created by YY on 2020/1/7.
//
 
#ifndef MYAPPLICATION2_XCONVERT_H
#define MYAPPLICATION2_XCONVERT_H
 
#include <cstdint>
 
void ConvertPhoneNum(uint8_t *dst, int length, const char *src);
void ConvertHex2String(char *str, const uint8_t *hex, int length);
void ConvertString2Hex(uint8_t *hex, int length, const char *str);
uint32_t TimeMakeComposite(int year, int month, int day, int hour, int minute, int second);
uint32_t TimeMakeComposite(int hour, int minute, int second, int msecond);
uint32_t TimeGetDiff(int hour1, int minute1, int second1, int msecond1, int hour2, int minute2, int second2, int msecond2);
 
#endif //MYAPPLICATION2_XCONVERT_H