Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
parseTime :: ParseTime t => TimeLocale -> String -> String -> Maybe ttime-compat Data.Time.Format.Compat Deprecated: use "parseTimeM True" instead
parseTimeM :: (MonadFail m, ParseTime t) => Bool -> TimeLocale -> String -> String -> m ttime-compat Data.Time.Format.Compat Parses a time value given a format string. Missing information will be derived from 1970-01-01 00:00 UTC (which was a Thursday). Supports the same %-codes as formatTime, including %-, %_ and %0 modifiers, however padding widths are not supported. Case is not significant in the input string. Some variations in the input are accepted:
- %z %Ez accepts any of ±HHMM or ±HH:MM.
- %Z %EZ accepts any string of letters, or any of the formats accepted by %z.
- %0Y accepts exactly four digits.
- %0G accepts exactly four digits.
- %0C accepts exactly two digits.
- %0f accepts exactly two digits.
Prelude Data.Time> parseTimeM True defaultTimeLocale "%Y-%-m-%-d" "2010-3-04" :: Maybe Day Just 2010-03-04
parseTimeOrError :: ParseTime t => Bool -> TimeLocale -> String -> String -> ttime-compat Data.Time.Format.Compat Parse a time value given a format string. Fails if the input could not be parsed using the given format. See parseTimeM for details.
timeAndOffsetFormat :: Format t -> FormatExtension -> Format (t, TimeZone)time-compat Data.Time.Format.ISO8601.Compat ISO 8601:2004(E) sec. 4.3.3
timeOfDayAndOffsetFormat :: FormatExtension -> Format (TimeOfDay, TimeZone)time-compat Data.Time.Format.ISO8601.Compat ISO 8601:2004(E) sec. 4.2.5.2
timeOffsetFormat :: FormatExtension -> Format TimeZonetime-compat Data.Time.Format.ISO8601.Compat ISO 8601:2004(E) sec. 4.2.5.1
timeZoneOffsetString :: TimeZone -> Stringtime-compat Data.Time.LocalTime.Compat Text representing the offset of this timezone, such as "-0800" or "+0400" (like %z in formatTime).
timeZoneOffsetString' :: Maybe Char -> TimeZone -> Stringtime-compat Data.Time.LocalTime.Compat Text representing the offset of this timezone, such as "-0800" or "+0400" (like %z in formatTime), with arbitrary padding.
closeTrail :: forall (v :: Type -> Type) n . Trail v n -> Trail v ndiagrams-lib Diagrams closeTrail is a variant of closeLine for Trail, which performs closeLine on lines and is the identity on loops.
lineFromOffsets :: (Metric v, OrderedField n) => [v n] -> Trail' Line v ndiagrams-lib Diagrams Construct a line containing only linear segments from a list of vectors, where each vector represents the offset from one vertex to the next. See also fromOffsets.
import Diagrams.Coordinates lineFromOffsetsEx = strokeLine $ lineFromOffsets [ 2 ^& 1, 2 ^& (-1), 2 ^& 0.5 ]