Stata System Parameters
Stata exposes system parameters in the c() class of stored results.
Contents
Usage
Use creturn list to view all c() class variables.
c(current_date) and c(current_time) are the system date and time, respectively. They are stored in the formats "dd MMM yyyy" and "hh:mm:ss".
local ts = string(td(`c(current_date)'), "%tdCYND") + "_" + string(tc(`c(current_time)'), "%tcHM")