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