Commit Graph

56 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
Doug Coleman 9b97da0658 calendar.format: Add a word to format time to a string for convenience. 2018-07-08 22:57:24 -05:00
John Benediktsson ca03896d74 more test IN: cleanup. 2018-02-15 09:20:01 -08:00
Alexander Iljin e44104c8d2 calendar.format: restore the deleted duration>hm
It was replaced with duration>hms, but the version without the seconds is
also useful.
2017-04-25 15:38:51 -04:00
Björn Lindqvist b17590db24 calendar.*: replacing hms>timestamp and timestamp>hms with duration variants
hms>duration is better because a timestamp without a date is
invalid. This also makes it so the SQL TIME column maps to duration. Now
we can add some validation so that you aren't allowed to create invalid
timestamps.
2017-01-05 12:38:05 +01:00
Björn Lindqvist c48319cb35 calendar.format: unused word 2017-01-05 12:38:05 +01:00
Björn Lindqvist 2895d5e095 calendar.format: moving parsing words to a new vocab calendar.parser
The vocab was getting big so the idea is to have all the time parsing in
calendar.parsing and only keep formatting words in calendar.format.
2017-01-04 08:50:24 +01:00
Björn Lindqvist f9b9ce20f2 calendar.english: new vocab for english names for days and months
This moves all the english-centric words from the calendar vocab which
was getting kind of big to calendar.english. It should make it easier to
see which vocabs make language assumptions.
2017-01-03 15:48:08 +01:00
Björn Lindqvist 13ec2e41b9 calendar.format.tests: stray char 2017-01-03 06:09:09 +01:00
John Benediktsson 4e9ad6ada7 calendar.format: parse rfc822 military and named timezones. 2016-12-31 13:50:08 -08:00
John Benediktsson 556a2b2b5b calendar.format: allow UTC to be in rfc822 timestamps. 2016-12-31 13:22:49 -08:00
Alexander Iljin a337a0349d calendar.format: add hm>timestamp 2016-07-30 09:25:30 -07:00
Doug Coleman 391f8e433f basis: Cleaning up tests using lists and IN: forms. 2016-03-30 20:04:14 -07:00
Jon Harper 19fadb6c96 prettyprinter, locale independant float printing 2016-03-08 07:55:25 -08:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman b6be8685c3 basis: ERROR: changes. 2015-08-13 03:20:39 -07:00
Doug Coleman 2c257f399c factor: Rename MACRO: and MACRO: to have quot as the output in stack effects. 2015-07-18 22:16:11 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 769af0673a calendar.format: Add a word to output times in the format that git uses. Rename a paren word. 2015-05-31 15:08:51 -07:00
John Benediktsson 3d86fba48b calendar.format: use format-float more. 2014-11-28 21:27:30 -08:00
John Benediktsson 794baf3222 calendar.format: change rfc3339 to always print microseconds. 2014-10-08 15:40:04 -07:00
John Benediktsson 13e5edc007 Revert "calendar.format: change to use formatting instead of math.parser.private."
This reverts commit 3cfac7916a.
2014-09-24 07:42:45 -07:00
John Benediktsson 3cfac7916a calendar.format: change to use formatting instead of math.parser.private. 2014-08-05 11:43:26 -07:00
John Benediktsson 116086ddf7 calendar.format: use math.parser format directive. 2014-07-08 16:03:02 -07:00
Jon Harper 484ddae159 calendar.format: rfc3339, don't drop seconds decimals 2014-07-08 15:53:52 -07:00
Jon Harper 278fe4830f calendar.format: allow space or tabs in rfc3339 2014-06-01 16:47:04 +02:00
Doug Coleman b6439e3cba calendar.format: run dos2unix on calendar.format 2013-04-24 08:23:17 -07:00
Doug Coleman 9f28391e6b calendar.format: Fix timestamp parsing when there is no timezone. Fixes #861. 2013-04-24 08:23:17 -07:00
John Benediktsson e74f770b57 Use bl in more places. 2013-03-14 19:24:00 -07:00
Doug Coleman 1ef827cd92 calendar.format: Add some utility words for implementing top. 2013-02-24 18:30:18 -08:00
John Benediktsson 4e72d80256 Using "same?" in more places. 2012-07-21 10:22:44 -07:00
John Benediktsson 6f1c44b46d Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
Doug Coleman 933319f401 Cleanups found with lint tool 2011-10-14 10:15:13 -07:00
Doug Coleman b059ade5ed Use TYPED: in a few places in calendar.format to avoid passing durations instead of timestamps 2010-03-02 04:31:17 -06:00
Slava Pestov df4fb4a3ee Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Doug Coleman 9548b7bdd8 fix a bug when printing calendars, add a unit test 2009-10-12 16:55:52 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Doug Coleman 4fef246ca4 add 10^ to math.functions and update usages 2009-08-11 18:00:24 -05:00
Slava Pestov fb6df472a2 Cleaning up USING: lists for new strict semantics 2009-05-14 16:54:16 -05:00
Slava Pestov 3353a777f7 Fixing some unit test failures 2009-04-22 07:05:00 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Doug Coleman 054a2e5b7c add word to parse robots.txt visit-time 2009-03-20 20:40:39 -05:00
Doug Coleman 894ba6182e add timestamp>mdtm to calendar.format 2009-02-17 17:09:27 -06:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Doug Coleman 3c408342ef renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail 2009-01-29 22:19:07 -06:00
Slava Pestov ba6f63ff56 calendar.format now depends on present instead of the other way around 2008-12-08 16:02:10 -06:00
Doug Coleman 07615bd219 remove >r r> 2008-11-29 13:40:48 -06:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00