Function: writeTimeToPacket()
ts
function writeTimeToPacket(packet: net_packet, time?: Nillable<CTime>): void;Save time object into net packet.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
packet | net_packet | undefined | Target packet to write data. |
time | Nillable<CTime> | null | Time object to write. |
Returns
void