* Re: diary: international date format [not found] <UI4d9.105384$kp.751238@rwcrnsc52.ops.asp.att.net> @ 2002-09-03 15:47 ` Edward M. Reingold 2002-09-04 14:58 ` Colin Marquardt 0 siblings, 1 reply; 5+ messages in thread From: Edward M. Reingold @ 2002-09-03 15:47 UTC (permalink / raw) >>>>> "RS" == Regis Smith <reegis@attbi.com> writes: RS> Unless I'm totally missing something, emacs doesn't recognize the RS> international calendar format (YYYY-MM-DD) for entries in the diary RS> file. I know of the M-x american-calendar and M-x european-calendar, RS> but I can't find a command for the international format. Is there a RS> standard hack to get this done? You just need to set your own value for diary-date-forms. See the documentation for that variable. -- Professor Edward M. Reingold Email: reingold@iit.edu Chairman, Department of Computer Science Voice: (312) 567-3309 Illinois Institute of Technology Secretary: (312) 567-5152 Stuart Building Fax: (312) 567-5067 10 West 31st Street, Suite 236 Chicago, IL 60616-3729 U.S.A. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: diary: international date format 2002-09-03 15:47 ` diary: international date format Edward M. Reingold @ 2002-09-04 14:58 ` Colin Marquardt 2002-09-04 15:20 ` Alan Shutko 0 siblings, 1 reply; 5+ messages in thread From: Colin Marquardt @ 2002-09-04 14:58 UTC (permalink / raw) reingold@emr.cs.uiuc.edu (Edward M. Reingold) writes: >>>>>> "RS" == Regis Smith <reegis@attbi.com> writes: > > RS> Unless I'm totally missing something, emacs doesn't recognize the > RS> international calendar format (YYYY-MM-DD) for entries in the diary > RS> file. I know of the M-x american-calendar and M-x european-calendar, > RS> but I can't find a command for the international format. Is there a > RS> standard hack to get this done? > > You just need to set your own value for diary-date-forms. See the > documentation for that variable. I think it would be worthwhile to enable support for ISO 8601 in calendar/diary by default. See http://www.cl.cam.ac.uk/~mgk25/iso-time.html for a detailed description. Ideally, one could give e.g. "2002-09-04T16:55:00" as a date/time spec. Of course, I don't volunteer to change the code, so I'll shut up now :) Cheers, Colin ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: diary: international date format 2002-09-04 14:58 ` Colin Marquardt @ 2002-09-04 15:20 ` Alan Shutko 2002-09-05 1:57 ` Miles Bader [not found] ` <mailman.1031191085.16256.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 5+ messages in thread From: Alan Shutko @ 2002-09-04 15:20 UTC (permalink / raw) Colin Marquardt <c.marquardt@alcatel.de> writes: > I think it would be worthwhile to enable support for ISO 8601 in > calendar/diary by default. See http://www.cl.cam.ac.uk/~mgk25/iso-time.html > for a detailed description. Ideally, one could give e.g. > "2002-09-04T16:55:00" as a date/time spec. We can fairly easily do something close to that. Currently, the date and time _have_ to be separate. So supporting YYYY-MM-DD would be easy. Supporting 16:55:00, also probably easy and may work now (I haven't checked). To support the 2002-09-04T16:55:00, we would need a bit more work allowing the date and time to be joined by a T. I don't know offhand how bad it would be. That would be enough for diary, but appt wouldn't work with it, you'd have to fix that as well. Supporting time zones is still another level of work, which would probably involve some deep changes (but I may come up with a way). I've added this to my todo list, and once I get my current calendar work done, I'll try to do at least the easy stuff on this list (ie, iso date specs). -- Alan Shutko <ats@acm.org> - In a variety of flavors! Trying to recover from another wild weekend. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: diary: international date format 2002-09-04 15:20 ` Alan Shutko @ 2002-09-05 1:57 ` Miles Bader [not found] ` <mailman.1031191085.16256.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 5+ messages in thread From: Miles Bader @ 2002-09-05 1:57 UTC (permalink / raw) Alan Shutko <ats@acm.org> writes: > To support the 2002-09-04T16:55:00, we would need a bit more work > allowing the date and time to be joined by a T. I don't know offhand > how bad it would be. That would be enough for diary, but appt > wouldn't work with it, you'd have to fix that as well. Does anyone _actually_ use the T? People using this format generally seem to use a slightly modified form without it. -miles -- Fast, small, soon; pick any 2. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.1031191085.16256.help-gnu-emacs@gnu.org>]
* Re: diary: international date format [not found] ` <mailman.1031191085.16256.help-gnu-emacs@gnu.org> @ 2002-09-05 5:45 ` Colin Marquardt 0 siblings, 0 replies; 5+ messages in thread From: Colin Marquardt @ 2002-09-05 5:45 UTC (permalink / raw) Miles Bader <miles@lsi.nec.co.jp> writes: > Alan Shutko <ats@acm.org> writes: >> To support the 2002-09-04T16:55:00, we would need a bit more work >> allowing the date and time to be joined by a T. I don't know offhand >> how bad it would be. That would be enough for diary, but appt >> wouldn't work with it, you'd have to fix that as well. > > Does anyone _actually_ use the T? People using this format generally > seem to use a slightly modified form without it. I don't use it for my own writing, but rather when I timestamp files and things like that. Indeed, a space between date and time would be enough. Cheers, Colin ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-09-05 5:45 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <UI4d9.105384$kp.751238@rwcrnsc52.ops.asp.att.net> 2002-09-03 15:47 ` diary: international date format Edward M. Reingold 2002-09-04 14:58 ` Colin Marquardt 2002-09-04 15:20 ` Alan Shutko 2002-09-05 1:57 ` Miles Bader [not found] ` <mailman.1031191085.16256.help-gnu-emacs@gnu.org> 2002-09-05 5:45 ` Colin Marquardt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).