Mercurial > urweb
view lib/ur/datetime.urs @ 2142:3288e3c9948b
Fix XML indentation in Emacs mode
The return value of MATCH-STRING is a string. At least on Emacs 25,
the comparisons between string and character with EQUAL could never
succeed, and so the cases for matching braces were never triggered.
GET-TEXT-PROPERTY may return a list rather than an atom (for example,
on long lines with whitespace-mode turned on), and this broke the
heuristic of looking for the tag face in previous text.
author | Julian Squires <julian@cipht.net> |
---|---|
date | Mon, 04 May 2015 14:35:07 -0400 |
parents | 50322ba22972 |
children |
line wrap: on
line source
datatype day_of_week = Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday datatype month = January | February | March | April | May | June | July | August | September | October | November | December type t = { Year : int, Month : month, Day : int, Hour : int, Minute : int, Second : int } val ord_datetime : ord t val show_day_of_week : show day_of_week val show_month : show month val eq_day_of_week : eq day_of_week val eq_month : eq month val dayOfWeekToInt : day_of_week -> int val intToDayOfWeek : int -> day_of_week val monthToInt : month -> int val intToMonth : int -> month val toTime : t -> time val fromTime : time -> t val format : string -> t -> string val dayOfWeek : t -> day_of_week val now : transaction t val normalize : t -> t val addSeconds : int -> t -> t val addMinutes : int -> t -> t val addHours : int -> t -> t val addDays : int -> t -> t