PoPL/04_semantics_and_running/examples/date-attr.ph

20 lines
276 B
Plaintext
Raw Normal View History

var date = Today()
print date,
print date'day,
print date'month,
print date'year,
print date'weekday,
print date'weeknum,
date.day = 2,
date.month = 3,
date.year = 2'000,
print date,
print date'day,
print date'month,
print date'year,
print date'weekday,
print date'weeknum