点击或拖拽改变大小

SiemensDateTimeToByteArray 方法 (DateTime)

Converts an array of DateTime values to a byte array.

命名空间:  HslCommunication.Profinet.Siemens
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static byte[] ToByteArray(
	DateTime[] dateTimes
)

参数

dateTimes
类型:SystemDateTime
The DateTime values to convert.

返回值

类型:Byte
A byte array containing the S7 date time representations of dateTimes.
异常
异常条件
ArgumentOutOfRangeExceptionThrown when any value of dateTimes is before [P:SpecMinimumDateTime] or after [P:SpecMaximumDateTime].
参见