Skip to content

Commit

Permalink
Add viewStartUTC, viewEndUTC
Browse files Browse the repository at this point in the history
  • Loading branch information
kfish committed Dec 23, 2011
1 parent 4c04829 commit f884541
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Scope/View.hs
Expand Up @@ -21,6 +21,8 @@ module Scope.View (
, dataToUTC , dataToUTC
, utcToCanvas , utcToCanvas


, viewStartUTC
, viewEndUTC
, viewStartTime , viewStartTime
, viewEndTime , viewEndTime
, viewDuration , viewDuration
Expand Down Expand Up @@ -96,6 +98,12 @@ utcToCanvas scope u = CanvasX $


---------------------------------------------------------------------- ----------------------------------------------------------------------


viewStartUTC :: Scope ui -> View ui -> Maybe UTCTime
viewStartUTC scope View{..} = dataToUTC scope viewX1

viewEndUTC :: Scope ui -> View ui -> Maybe UTCTime
viewEndUTC scope View{..} = dataToUTC scope viewX2

viewStartTime :: Scope ui -> View ui -> Maybe TimeStamp viewStartTime :: Scope ui -> View ui -> Maybe TimeStamp
viewStartTime scope View{..} = dataToTimeStamp scope viewX1 viewStartTime scope View{..} = dataToTimeStamp scope viewX1


Expand Down

0 comments on commit f884541

Please sign in to comment.