VHDL does not have any method to get system date and time until VHDL 2019. This means that if I need to store the FPGA design synthesis time when an FPGA design is compiled, or when simulation is run, it is not possible. There are some workarounds that use something outside VHDL to generate date-time value and then pass this value into the synthesis code or the testbench.
Now this question is about SystemVerilog. Does SystemVerilog have a method whereby one can generate a logic vector storing the date-time value? For synthesis code the value shall be for when the function was invoked which is when synthesis was initialized. For simulation it shall be for when the simulation was executed.