Revert "Generated code using date format"
This reverts commit 3aaceece57.
This commit is contained in:
@@ -434,16 +434,16 @@ instance P.Show DateTime where
|
||||
instance MimeRender MimeMultipartFormData DateTime where
|
||||
mimeRender _ = mimeRenderDefaultMultipartFormData
|
||||
|
||||
-- | @TI.parseTimeM True TI.defaultTimeLocale "%FT%T%6QZ"@
|
||||
_readDateTime :: (TI.ParseTime t, Monad m, ) => String -> m t
|
||||
-- | @_parseISO8601@
|
||||
_readDateTime :: (TI.ParseTime t, Monad m, Alternative m) => String -> m t
|
||||
_readDateTime =
|
||||
TI.parseTimeM True TI.defaultTimeLocale "%FT%T%6QZ"
|
||||
_parseISO8601
|
||||
{-# INLINE _readDateTime #-}
|
||||
|
||||
-- | @TI.formatTime TI.defaultTimeLocale "%FT%T%6QZ"@
|
||||
_showDateTime :: (TI.FormatTime t) => t -> String
|
||||
-- | @TI.formatISO8601Micros@
|
||||
_showDateTime :: (t ~ TI.UTCTime, TI.FormatTime t) => t -> String
|
||||
_showDateTime =
|
||||
TI.formatTime TI.defaultTimeLocale "%FT%T%6QZ"
|
||||
TI.formatISO8601Micros
|
||||
{-# INLINE _showDateTime #-}
|
||||
|
||||
-- | parse an ISO8601 date-time string
|
||||
|
||||
Reference in New Issue
Block a user