From: Maxim Nikulin <email@example.com> To: firstname.lastname@example.org Subject: Re: org-table change time from UTC to other timezones Date: Sat, 12 Dec 2020 23:04:04 +0700 Message-ID: <email@example.com> (raw) In-Reply-To: <CAF-1L2QrWwPaZygp2_Pxo+Hye1keYfAX76qLmvQta9BoFa514w@mail.gmail.com> 2020-12-12 Alan E. Davis wrote: > > Thank for the clear explanation. My little problem seems to require a > super steam hammer. Your insights are most helpful. You do not need a steam hammer. There are a number of tools around. Some of hammers however could not deal with all nails. Even "date" util could be used to convert between timestamps and human readable representation, between timezones. It could even do some arithmetic date --utc -d @1234567890 Fri Feb 13 23:31:30 UTC 2009 date -d 'now' +%s 1607787784 date -d 'now +10hours' +%s 1607823786 TZ=America/New_York date -d "@`TZ=Europe/Berlin date -d '2020-11-10 09:08:07 +10hours' '+%s'`" Mon Nov 9 19:08:07 EST 2020 In my opinion, org mode is too rigid in respect to timestamp format. Sometimes I would prefer to specify timestamps with timezone. Well known example of idiosyncrasy of particular applications. Timestamps in xls files are represented by floating point numbers, namely days since 1 Jan 1900, fractional part is time. Unfortunately 1900 is not a leap year, so to avoid unnecessary complications of code and keep memory footprint small, on Macs epoch starts in 1904, on windows year 1900 has Feb, 29...
next prev parent reply other threads:[~2020-12-12 20:14 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-09 10:20 Alan E. Davis 2020-12-09 11:34 ` Tim Cross 2020-12-10 8:10 ` Alan E. Davis 2020-12-10 19:01 ` Tim Cross 2020-12-11 0:12 ` Alan E. Davis 2020-12-11 15:40 ` Maxim Nikulin 2020-12-11 22:44 ` Alan E. Davis 2020-12-12 16:04 ` Maxim Nikulin [this message] 2020-12-12 22:52 ` Tim Cross 2020-12-13 3:14 ` Alan E. Davis 2020-12-13 17:03 ` Maxim Nikulin 2020-12-14 2:29 ` Alan E. Davis 2020-12-12 3:31 ` Jean Louis
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://orgmode.org * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --firstname.lastname@example.org' \ --email@example.com \ --firstname.lastname@example.org \ /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
Org-mode mailing list This inbox may be cloned and mirrored by anyone: git clone --mirror https://orgmode.org/list/0 list/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 list list/ https://orgmode.org/list \ email@example.com public-inbox-index list Example config snippet for mirrors. Newsgroups are available over NNTP: nntp://news.yhetil.org/yhetil.emacs.orgmode nntp://news.gmane.io/gmane.emacs.orgmode AGPL code for this site: git clone https://public-inbox.org/public-inbox.git