How do I get the day of the week?

q)`Sat`Sun`Mon`Tue`Wed`Thu`Fri .z.D mod 7
`Sat
q)\date
“Sat Mar 5 18:56:04 PST 2011″
q)

see also: -W, .z.D, mod, os-commands


kdbfaq

.z.Dmod

19 Words

2011-03-18 23:26 +0000