( timestamp?: TimestampProtoEs )
| 12 | }; |
| 13 | |
| 14 | export const getDateForPbTimestampProtoEs = ( |
| 15 | timestamp?: TimestampProtoEs |
| 16 | ): Date | undefined => { |
| 17 | if (!timestamp) { |
| 18 | return undefined; |
| 19 | } |
| 20 | return new Date(getTimeForPbTimestampProtoEs(timestamp)); |
| 21 | }; |
no test coverage detected