Create a variable CDATE in the current shell that contains the date in '%Y-%m-%d %H:%M:%S' format , and a variable EPOCH that contains the seconds since epoch
source  <(date +"CDATE='%Y-%m-%d %H:%M:%S' EPOCH='%s'")