How do I get the day of the week?

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

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This work is licensed under a Creative Commons License.
The views and opinions expressed herein are those of the authors and do not necessarily reflect those of any other person or legal entity.
Kdb+ is the registered trademark of Kx Systems, Inc.