G’day:
I just saw a function like this in our codebase:
function f(timestamp x){
writeDump(arguments)
}
I asked the dev “WTH is a timestamp
?” in the context of CFML, as it’s not a documented inbuilt type (<cfargument> :: Lucee Documentation). Non-inbuilt types should be treated as CFC types, and we were passing a date/time value to this function… and it was “working”.
A portable repro is here: TryCF.com
Is this just an alias for date
? I also note that datetime
seems to also “work”.
Def think these unorthodoxies should be documented and also noted that they diverge from CF’s behaviour.