import DateTimePieces from "../models/DateTimePieces" ; param pieces const parsePiecesToDate = ( pieces ) : Date => new Date ( pieces . year , pieces . month , pieces . date , pieces . hours , pieces . minutes , pieces . seconds ) ; export default parsePiecesToDate ;