smartlink-format-time
Version:
smartlink-format-time
16 lines (15 loc) • 673 B
TypeScript
/**
* @Author: v_jppjpeng
* @Date: 2025-04-10 10:17:29
* @Explain: 时间格式化
*/
/** 时间戳时间格式化 */
export declare const timeStampFormat: (value: number, dateFormat?: string) => string;
/** moment时间格式化 */
export declare const momentDateFormat: (value: any, dateFormat?: string) => string;
/** 是否秒的值 */
export declare const isSecondsValue: (value: string) => boolean;
/** 时间戳转化(单位:毫秒) */
export declare const onTimeStampConversion: (value: number) => number;
/** 格式化时区 - 如果时区是-1:00 则 会转成 -01:00 */
export declare const formatTimeZoneOffset: (offset: string) => string;