fifth-postulate / julian

Date and time library for Prolog
The Unlicense
27 stars 3 forks source link

support RFC 1123 times with parse_time/3 #6

Open mndrix opened 10 years ago

mndrix commented 10 years ago

SWI Prolog already has the predicate parse_time/3 which handles RFC 1123.

It would be easy and convenient to support parsing for that format by using the built in. Going the other direction would be handled with format_time/3

mndrix commented 10 years ago

As of commit 4c55702e253edd7f495dd45061f811a6ae2cee50 parsing is supported through a UI hack. Parse the RFC 1123 string with rfc3339(...) and everything works. This is ugly and doesn't support generating these timestamps.