DateTimeHelper
01 Syntax
Microsoft.VisualBasic.ValueTypes.DateTimeHelper
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetMonthInteger | 1 | 从全称或者简称解析出月份的数字 |
| FillDateZero | 1 | 00 |
| DateSeq | 1 | 枚举出在start到ends这个时间窗里面的所有日期,单位为天 |
| YYMMDD | 1 | yyyy-mm-dd |
| UnixTimeStamp | 1 | Convert DateTime to unix time stamp |
| FromUnixTimeStamp | 1 | 将Unix时间戳转换为可读的日期 |
| ReadableElapsedTime | 1 | |
| ToDate | 1 | Parse date string in json value format. |
| UnixTimeStampMillis | 1 | |
| FromMilliseconds | 1 | |
| IsEmpty | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| MonthList | 1 | List of month names and its Int32 value in a year |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| ZeroDate3 | 1 | 对于unix timestamp而言,这个日期是零 |
05 Members
GetMonthInteger(
String)从全称或者简称解析出月份的数字
Parameters
| Name | Type | Description |
|---|---|---|
mon | String | 大小写不敏感 |
FillDateZero(
Int32)00
Parameters
| Name | Type | Description |
|---|---|---|
d | Int32 | - |
DateSeq(
DateTime, DateTime)枚举出在start到ends这个时间窗里面的所有日期,单位为天
Parameters
| Name | Type | Description |
|---|---|---|
start | DateTime | - |
ends | DateTime | - |
Returns
返回值里面包含有起始和结束的日期
YYMMDD(
DateTime)yyyy-mm-dd
Parameters
| Name | Type | Description |
|---|---|---|
x | DateTime | - |
UnixTimeStamp(
DateTime)Convert DateTime to unix time stamp
Parameters
| Name | Type | Description |
|---|---|---|
time | DateTime | - |
FromUnixTimeStamp(
Int64)将Unix时间戳转换为可读的日期
Parameters
| Name | Type | Description |
|---|---|---|
unixDateTime | Int64 | - |
ReadableElapsedTime(
Int64, String, Int32)Parameters
| Name | Type | Description |
|---|---|---|
microtime | Int64 | xxx ms |
format | String | - |
round | Int32 | - |
ToDate(
String)Parse date string in json value format.
Parameters
| Name | Type | Description |
|---|---|---|
s | String | Where s Is a time value with offset |
MonthList
List of month names and its Int32 value in a year
ZeroDate3
对于unix timestamp而言,这个日期是零
UnixTimeStampMillis(
DateTime)FromMilliseconds(
Int64)IsEmpty(
DateTime, Boolean)