点击或拖拽改变大小

SiemensDateTimeToByteArray 方法 (DateTime)

Converts a DateTime value to a byte array.

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

参数

dateTime
类型:SystemDateTime
The DateTime value to convert.

返回值

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