mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-11-04 09:57:41 +03:00 
			
		
		
		
	added time type
This commit is contained in:
		
							parent
							
								
									dddb20a0f4
								
							
						
					
					
						commit
						f089c78b99
					
				| 
						 | 
					@ -61,5 +61,5 @@ class Time(Scalar):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @classmethod
 | 
					    @classmethod
 | 
				
			||||||
    def parse_value(cls, value):
 | 
					    def parse_value(cls, value):
 | 
				
			||||||
        dt = iso8601.parse_date('{}T{}'.format(cls.epocj_time, value))
 | 
					        dt = iso8601.parse_date('{}T{}'.format(cls.epoch_time, value))
 | 
				
			||||||
        return datetime.time(dt.hour, dt.minute, dt.second, dt.microsecond, dt.tzinfo)
 | 
					        return datetime.time(dt.hour, dt.minute, dt.second, dt.microsecond, dt.tzinfo)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user