I am trying to implement date() function in AGE, but C doesn't have an in-build date function that I can use. I am considering utilizing the age_timestamp()
function and converting its output to date format. However, I have been unable to find the specific algorithm for this conversion.
Datum age_date(PG_FUNCTION_ARGS) {
agtype time = age_timestamp()
// Program Logic
}
Are there any alternative methods that can provide the desired date functionality in AGE.