all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: Help
Date: Thu, 24 Oct 2002 15:01:51 +0200	[thread overview]
Message-ID: <m3of9k6lds.fsf@defun.localdomain> (raw)
In-Reply-To: 3DB261D7.5060306@hananet.net

swk <sunwukong@hananet.net> writes:

> Each line starts with a modified ISO date    e.g.,   19991203   (YYYYMMDD)
>
> Is there any way to pull the ISO Dates to a file and then append the
> equivilant Chinese dates to a file?

I don't think there's any predefined functionality for that.  Here's a
suggestion for a way you could implement it.  

Evaluate the following, load the file with the ISO dates in a buffer and
do `M-x jh-iso-to-chinese', which will put the Chinese dates in another
buffer.


(defun jh-iso-to-chinese ()
  (interactive)
  (goto-char (point-min))
  (while (re-search-forward "^\\([[:digit:]]\\{4\\}\\)\\([[:digit:]]\\{2\\}\\)\\([[:digit:]]\\{2\\}\\)" nil t)
    (let ((str (format "%s\n" (calendar-chinese-date-string 
			       (mapcar 'string-to-int 
				       (list (match-string 1) 
					     (match-string 2) 
					     (match-string 3)))))))
    (with-current-buffer (get-buffer-create "*chinese output*")
      (insert str))))
  (switch-to-buffer "*chinese output*"))

  reply	other threads:[~2002-10-24 13:01 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-20  7:57 Help swk
2002-10-24 13:01 ` Jesper Harder [this message]
2002-10-24 21:45   ` Help swk
2002-10-29 21:56   ` Help swk
  -- strict thread matches above, loose matches on Subject: below --
2004-06-08  7:52 Help patrizia d'ippolito
2005-12-13 23:32 ` Help Richard M. Stallman
2005-12-14  7:55   ` Help Juri Linkov
2005-12-14 16:34     ` Help Kevin Rodgers
2005-12-14 19:15     ` Help Eli Zaretskii
2005-12-15  2:07     ` Help Richard M. Stallman
2005-12-15  8:16       ` Help Werner LEMBERG
2004-12-15 12:53 help fisherssml
2005-08-03 14:07 Help Rich Hojsack
2005-12-15 15:35 ` Help Kevin Rodgers
2007-04-29  6:45 Help Mahesh HM
     [not found] <mailman.2698.1177883418.7795.help-gnu-emacs@gnu.org>
2007-04-29 22:07 ` Help Harald Hanche-Olsen
2007-12-13  5:42 help HANS jackman
2007-12-13 17:38 ` help Mike Mattie
2007-12-13 19:16 ` help Sebastian Tennant
2008-06-09 16:00 help 江林
2008-06-09 19:39 ` help Xah
2008-06-09 16:36 Help ila
2008-06-09 19:47 ` Help Xah
2008-06-10  0:29   ` Help Nikolaj Schumacher
2008-06-10 17:01 ` Help Joel J. Adamson
2010-01-05 16:17 Help Rhey, David
2010-01-05 19:11 ` Help Tassilo Horn
     [not found] <mailman.771.1263114721.18930.help-gnu-emacs@gnu.org>
2010-01-10  9:57 ` Help Cecil Westerhof
2010-01-10 22:36   ` Help Tim X
2010-01-20 16:52     ` Help Matt Proud
2014-09-02 16:07 help Moritz Kiefer
2014-10-12 12:10 ` help Bastien
2015-09-25  7:18 help ss
2015-09-25 11:00 ` help tomas
2015-09-27 17:21   ` help Artur Malabarba
2015-09-27 17:49     ` help Marcin Borkowski
2015-09-27 18:28       ` help Artur Malabarba
2015-09-27 20:02         ` help Marcin Borkowski
2015-09-28  1:37           ` help Kaushal Modi
2015-09-28 11:03             ` help Artur Malabarba
     [not found] <mailman.1794.1443178478.19560.help-gnu-emacs@gnu.org>
2015-09-25 11:07 ` help Joost Kremers
     [not found] <mailman.80.1454259641.17556.emacs-orgmode@gnu.org>
2016-01-31 21:51 ` Help Heartsayer
2016-05-07 15:07 Help 庄 子恒
2016-05-08  4:03 ` Help Kaushal Modi
2016-05-08  7:12   ` Help Guillermo Vaya
2016-05-08 13:39 ` Help John Mastro
2016-05-09  0:47 ` Help Emanuel Berg
2016-05-09  8:42   ` Help Dejan Jocic
2016-05-09  9:30     ` Help Bob Proulx
2016-05-09 10:03       ` Help Dejan Jocic
2016-05-10  5:36         ` Help Bob Proulx
2016-05-10  6:09           ` Help Dejan Jocic
2016-05-10 23:17         ` Help Emanuel Berg
2016-05-11  8:57           ` Help Dejan Jocic
2016-05-14  3:52             ` Help Emanuel Berg
2016-05-11  0:31         ` Help John Mastro
2016-05-11  8:45           ` Help Dejan Jocic
2016-05-14  3:49     ` Help Emanuel Berg
2023-01-13  2:43 help josh parson
2023-01-16  4:25 ` help Richard Stallman
2023-01-16  5:20 ` help Jim Porter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3of9k6lds.fsf@defun.localdomain \
    --to=harder@myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.