unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24823: 25.1.50; parse-time-string cannot parse ISO 8601 time string
@ 2016-10-30  7:32 Hong Xu
  2016-10-30 14:18 ` Clément Pit--Claudel
  2016-11-30  9:30 ` Matt Armstrong
  0 siblings, 2 replies; 4+ messages in thread
From: Hong Xu @ 2016-10-30  7:32 UTC (permalink / raw)
  To: 24823


In GNU Emacs 25.1.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
Repository revision: 91c97b6eed708f5a1f34478b52f42ef9e51efcb5
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description:	Debian GNU/Linux 8.6 (jessie)

Configured using:
 'configure --with-xwidgets --with-modules
 --prefix=/home/hong/.local/opt/emacs'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS

Important settings:
  value of $LC_CTYPE: zh_CN.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=fcitx
  locale-coding-system: utf-8-unix

The function parse-time-string cannot parse ISO 8601 time string, e.g.,
2005-04-07T22:13:13, which is pretty ubiquitous nowadays.
(parse-time-string 2005-04-07T22:13:13) returns a list full of nils.

<#secure method=pgpmime mode=sign>






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24823: 25.1.50; parse-time-string cannot parse ISO 8601 time string
  2016-10-30  7:32 bug#24823: 25.1.50; parse-time-string cannot parse ISO 8601 time string Hong Xu
@ 2016-10-30 14:18 ` Clément Pit--Claudel
  2016-11-30  9:30 ` Matt Armstrong
  1 sibling, 0 replies; 4+ messages in thread
From: Clément Pit--Claudel @ 2016-10-30 14:18 UTC (permalink / raw)
  To: 24823


[-- Attachment #1.1: Type: text/plain, Size: 1201 bytes --]

Does any of date-to-time, parse-iso8601-time-string, or timezone-parse-date fit the bill?

Clément.

On 2016-10-30 03:32, Hong Xu wrote:
> 
> In GNU Emacs 25.1.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
> Repository revision: 91c97b6eed708f5a1f34478b52f42ef9e51efcb5
> Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
> System Description:	Debian GNU/Linux 8.6 (jessie)
> 
> Configured using:
>  'configure --with-xwidgets --with-modules
>  --prefix=/home/hong/.local/opt/emacs'
> 
> Configured features:
> XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
> NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
> TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS
> 
> Important settings:
>   value of $LC_CTYPE: zh_CN.UTF-8
>   value of $LANG: en_US.UTF-8
>   value of $XMODIFIERS: @im=fcitx
>   locale-coding-system: utf-8-unix
> 
> The function parse-time-string cannot parse ISO 8601 time string, e.g.,
> 2005-04-07T22:13:13, which is pretty ubiquitous nowadays.
> (parse-time-string 2005-04-07T22:13:13) returns a list full of nils.
> 
> <#secure method=pgpmime mode=sign>
> 
> 
> 
> 
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24823: 25.1.50; parse-time-string cannot parse ISO 8601 time string
  2016-10-30  7:32 bug#24823: 25.1.50; parse-time-string cannot parse ISO 8601 time string Hong Xu
  2016-10-30 14:18 ` Clément Pit--Claudel
@ 2016-11-30  9:30 ` Matt Armstrong
  2016-12-01 20:58   ` Hong Xu
  1 sibling, 1 reply; 4+ messages in thread
From: Matt Armstrong @ 2016-11-30  9:30 UTC (permalink / raw)
  To: Hong Xu; +Cc: 24823-done

Hong Xu <hong@topbug.net> writes:

> The function parse-time-string cannot parse ISO 8601 time string, e.g.,
> 2005-04-07T22:13:13, which is pretty ubiquitous nowadays.
> (parse-time-string 2005-04-07T22:13:13) returns a list full of nils.

Hi Hong, parse-iso8601-time-string exists and can be used to parse ISO
8601 time strings.  It falls back to RFC 2822 style strings if that
fails.  It would be nice if parse-time-string handled 8601 formt, but
this has implications for current users.  I'll tag this bug a 'wishlist'
in case others have opinions.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24823: 25.1.50; parse-time-string cannot parse ISO 8601 time string
  2016-11-30  9:30 ` Matt Armstrong
@ 2016-12-01 20:58   ` Hong Xu
  0 siblings, 0 replies; 4+ messages in thread
From: Hong Xu @ 2016-12-01 20:58 UTC (permalink / raw)
  To: Matt Armstrong; +Cc: 24823-done

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]


On 2016-11-30 Wed 01:30 GMT-0800, Matt Armstrong <marmstrong@google.com> wrote:

> Hong Xu <hong@topbug.net> writes:
>
>> The function parse-time-string cannot parse ISO 8601 time string, e.g.,
>> 2005-04-07T22:13:13, which is pretty ubiquitous nowadays.
>> (parse-time-string 2005-04-07T22:13:13) returns a list full of nils.
>
> Hi Hong, parse-iso8601-time-string exists and can be used to parse ISO
> 8601 time strings.  It falls back to RFC 2822 style strings if that
> fails.  It would be nice if parse-time-string handled 8601 formt, but
> this has implications for current users.  I'll tag this bug a 'wishlist'
> in case others have opinions.

Thank you, that should have solved my problem!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-01 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-30  7:32 bug#24823: 25.1.50; parse-time-string cannot parse ISO 8601 time string Hong Xu
2016-10-30 14:18 ` Clément Pit--Claudel
2016-11-30  9:30 ` Matt Armstrong
2016-12-01 20:58   ` Hong Xu

Code repositories for project(s) associated with this public inbox

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

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).