Category "hcl"

Is timestamp function not supported in HCL2?

I am trying to get the current day and put in a local locals { current_day = formatdate("DD/MM/YYYY", timestamp()) } but a I get this error Call to unknown

Should .terraform.lock.hcl be included in the .gitignore file?

From my current knowledge, there is no reason .terraform.lock.hcl should be included in the .gitignore. Nothing about this file is private, or is there?