Class: Time
- Inherits:
 - 
      Object
      
        
- Object
 - Time
 
 
- Defined in:
 - lib/discorb/extend.rb
 
Instance Method Summary collapse
- 
  
    
      #to_df(type = nil) -> String 
    
    
  
  
  
  
  
  
  
  
  
    
Format a time object to a Discord formatted string.
 
Instance Method Details
#to_df(type = nil) -> String
Format a time object to a Discord formatted string.
      11 12 13 14 15 16 17  | 
    
      # File 'lib/discorb/extend.rb', line 11 def to_df(type = nil) if type.nil? "<t:#{to_i}>" else "<t:#{to_i}:#{type}>" end end  |