From: swk <sunwukong@hananet.net>
Subject: Re: Help
Date: Fri, 25 Oct 2002 06:45:02 +0900 [thread overview]
Message-ID: <3DB869DE.9010209@hananet.net> (raw)
In-Reply-To: m3of9k6lds.fsf@defun.localdomain
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
Thanks I will give it a try. I've found a DLL that may also do the job.
Jesper Harder wrote:
>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*"))
>
>
[-- Attachment #2: Type: text/html, Size: 1607 bytes --]
next prev parent reply other threads:[~2002-10-24 21:45 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-20 7:57 Help swk
2002-10-24 13:01 ` Help Jesper Harder
2002-10-24 21:45 ` swk [this message]
2002-10-29 21:56 ` Help swk
-- strict thread matches above, loose matches on Subject: below --
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
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
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DB869DE.9010209@hananet.net \
--to=sunwukong@hananet.net \
/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.
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).