#include <mzfc/MzfcDll.h>
#include <sstream>
#include <iomanip>
#include <winbase.h>
#include <mzfc/MzString.h>
枚举 | |
enum | { DATETIME_STRING_ONLY_DATE = 1, DATETIME_STRING_WITH_DATE_AND_WEEK_AND_NONGLI, DATETIME_STRING_ONLY_YEAR_AND_MONTH, DATETIME_STRING_ONLY_TIME, DATETIME_STRING_ALL, DATETIME_STRING_ALL_WITHOUT_YEAR, DATETIME_STRING_DYN, DATETIME_STRING_DYN2, DATETIME_STRING_DYN2_SIMPLE, DATETIME_STRING_ONLY_WEEK, DATETIME_STRING_ONLY_YEAR, DATETIME_STRING_EXCEPT_YEAR, DATETIME_STRING_DYN_YEAR, DATETIME_STRING_YEAR_MONTH_DAY, DATETIME_STRING_ALL_SIMPLE } |
获取时间字符串方式 更多... | |
函数 | |
MZFC_API char | FirstLetterFromFirstNameUnicode (TCHAR unicode) |
获取姓氏字符拼音首字母 | |
MZFC_API char | FirstLetterFromUnicode (TCHAR unicode) |
获取字符拼音首字母 | |
MZFC_API CMzString | GetDateTimeString (FILETIME &ft, DWORD flag) |
获取时间字符串 | |
MZFC_API CMzString | GetDateTimeString (SYSTEMTIME &st, DWORD flag) |
获取时间字符串 | |
MZFC_API CMzString | GetTimeString (unsigned short s) |
获取时间字符串 | |
MZFC_API CMzString | Int2String (int i, int StringLen) |
数字转换为字符串,指定字符串长度为StringLen,如果不足位,则左边补0 | |
MZFC_API CMzString | Int2String (int i) |
数字转换为字符串 | |
MZFC_API bool | LocalSystemTimetoUnixTime (SYSTEMTIME &st, int &dt) |
MZFC_API int | MzBase64Encode (char *const aDest, const unsigned char *aSrc, int aLen) |
MZFC_API int | MzQPEncode (char *const aDest, const unsigned char *aSrc, int aLen) |
MZFC_API int | String2Int (LPCWSTR str) |
字符串转换为数字 | |
MZFC_API bool | SystemTimetoUnixTime (SYSTEMTIME &st, int &dt) |
MZFC_API bool | UnixTimeToLocalFileTime (time_t t, LPFILETIME pft) |
MZFC_API bool | UnixTimetoLocalSystemTime (int dt, SYSTEMTIME &st) |
anonymous enum |
获取时间字符串方式
MZFC_API char FirstLetterFromFirstNameUnicode | ( | TCHAR | unicode | ) |
获取姓氏字符拼音首字母
MZFC_API char FirstLetterFromUnicode | ( | TCHAR | unicode | ) |
获取字符拼音首字母
MZFC_API CMzString GetDateTimeString | ( | FILETIME & | ft, | |
DWORD | flag | |||
) |
获取时间字符串
ft | 时间 | |
flag | 转换方式 |
MZFC_API CMzString GetDateTimeString | ( | SYSTEMTIME & | st, | |
DWORD | flag | |||
) |
获取时间字符串
st | 时间 | |
flag | 转换方式 |
MZFC_API CMzString GetTimeString | ( | unsigned short | s | ) |
获取时间字符串
s | 秒为单位的时间 |
MZFC_API CMzString Int2String | ( | int | i, | |
int | StringLen | |||
) |
数字转换为字符串,指定字符串长度为StringLen,如果不足位,则左边补0
MZFC_API CMzString Int2String | ( | int | i | ) |
数字转换为字符串
MZFC_API bool LocalSystemTimetoUnixTime | ( | SYSTEMTIME & | st, | |
int & | dt | |||
) |
MZFC_API int MzBase64Encode | ( | char *const | aDest, | |
const unsigned char * | aSrc, | |||
int | aLen | |||
) |
MZFC_API int MzQPEncode | ( | char *const | aDest, | |
const unsigned char * | aSrc, | |||
int | aLen | |||
) |
MZFC_API int String2Int | ( | LPCWSTR | str | ) |
字符串转换为数字
MZFC_API bool SystemTimetoUnixTime | ( | SYSTEMTIME & | st, | |
int & | dt | |||
) |
MZFC_API bool UnixTimeToLocalFileTime | ( | time_t | t, | |
LPFILETIME | pft | |||
) |
MZFC_API bool UnixTimetoLocalSystemTime | ( | int | dt, | |
SYSTEMTIME & | st | |||
) |