lib: getCurrentZonedTime
This commit is contained in:
		
							parent
							
								
									843c417079
								
							
						
					
					
						commit
						275f98b3be
					
				| @ -107,6 +107,12 @@ getCurrentLocalTime = do | ||||
|   tz <- getCurrentTimeZone | ||||
|   return $ utcToLocalTime tz t | ||||
| 
 | ||||
| getCurrentZonedTime :: IO ZonedTime | ||||
| getCurrentZonedTime = do | ||||
|   t <- getCurrentTime | ||||
|   tz <- getCurrentTimeZone | ||||
|   return $ utcToZonedTime tz t | ||||
| 
 | ||||
| -- misc | ||||
| 
 | ||||
| isLeft :: Either a b -> Bool | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user