两中方法: 1.可以用api来做: [structlayout (layoutkind.sequential)] public struct systemtime { public short year; public short month; public short dayofweek; public short day; public short hour; public short minute; public short second; public short miliseconds; }