Changeset 36173 in project


Ignore:
Timestamp:
08/11/18 20:48:08 (16 months ago)
Author:
sjamaan
Message:

Port rfc3339 to CHICKEN 5

Location:
release/5/rfc3339
Files:
1 added
2 deleted
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • release/5/rfc3339/trunk/rfc3339.egg

    r36115 r36173  
    22
    33((license "BSD")
    4  (doc-from-wiki)
    54 (author "Jim Ursetto")
    65 (synopsis "RFC3339 datetime parser")
    7  (needs matchable regex)
    8  (test-depends test)
     6 (dependencies matchable regex)
     7 (test-dependencies test)
    98 (category parsing)
    10  (files "rfc3339.release-info" "rfc3339.scm" "rfc3339.setup" "tests/run.scm" "rfc3339.meta"))
     9 (components (extension rfc3339 (csc-options "-O3" "-d0"))))
  • release/5/rfc3339/trunk/rfc3339.scm

    r19575 r36173  
    2626;;; date handling
    2727
    28 (import scheme chicken)
    29 (require-library posix extras)
    30 (import (only posix seconds->utc-time seconds->local-time utc-time->seconds))
    31 (import (only extras fprintf))
    32 (use regex) (import irregex)
    33 (use matchable)
     28(import scheme (chicken base))
     29(import (only (chicken time posix) seconds->utc-time seconds->local-time utc-time->seconds))
     30(import (only (chicken format) fprintf))
     31(import (chicken irregex))
     32(import regex)
     33(import matchable)
    3434
    3535(define +rx:datetime+
  • release/5/rfc3339/trunk/tests/run.scm

    r22039 r36173  
    1 (use test rfc3339 posix)
     1(import test rfc3339 (chicken time posix))
    22
    33(test-begin "rfc3339->seconds")
     
    2626         (rfc3339->seconds
    2727          (rfc3339 "2000-02-28T23:00:00-01:00"))))))
    28 (test "2000-02-28T23:00:00-01:00 time->rfc3339 (may fail on older Chicken)"
     28(test "2000-02-28T23:00:00-01:00 time->rfc3339"
    2929      "2000-02-29T00:00:00Z"
    3030      (rfc3339->string
Note: See TracChangeset for help on using the changeset viewer.