#lang scheme/base
(require (prefix-in s: srfi/19)
"base.ss"
scheme/contract
)
(define (date/plt->srfi/19 d)
(s:make-date 0
(date-second d) (date-minute d)
(date-hour d)
(date-day d)
(date-month d)
(date-year d)
(date-time-zone-offset d)))
(define (date/srfi/19->plt s)
(make-date (s:date-second s)
(s:date-minute s)
(s:date-hour s)
(s:date-day s)
(s:date-month s)
(s:date-year s)
(week-day s)
(year-day s)
#f (s:date-zone-offset s)))
(provide/contract
(date/srfi/19->plt (-> s:date? date?))
(date/plt->srfi/19 (-> date? s:date?))
)