Discover Packages 
           
        
          
            github.com/pion/interceptor 
           
        
          
            internal 
           
        
        
          
            ntp
           
          
            
               
          
        
       
     
   
  
    
  
    
       
    
    
      package 
    
    
      
        
           
      
    
   
    
      
  
    
      
  
    
      Version:  
        v0.1.41
     
    
      Opens a new window with list of versions in this module.
    
    
    
   
      
  
    Published: Sep 30, 2025
   
      
  
    License: MIT 
      
    
   
  
    Opens a new window with license information.
  
      
        
  
    
      Imports:  1
     
   
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by:  0
     
   
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
 
    
      
    
    
  
  
    
      
        
          Documentation 
        
       
     
  
 
    
  
    
      
      
        
          
  
    
      ¶ 
     
    
  
    
  
    
      
        
 
    
Package ntp provides conversion methods between time.Time and NTP timestamps
stored in uint64
 
  
  
  
  
  
	  
  
  
    
    
    
  ToNTP converts a time.Time oboject to an uint64 NTP timestamp.
  
         
	  
  
  
    
    
    
  ToNTP32 converts a time.Time object to a uint32 NTP timestamp.
  
         
	  
  
  
    
    
    
  ToTime converts a uint64 NTP timestamps to a time.Time object.
  
         
	  
  
  
    
    
    
  ToTime32 converts a uint32 NTP timestamp to a time.Time object, using the
highest 16 bit of the reference to recover the lost bits. The low 16 bits are
not recovered.
  
           
      
     
   
        
      
      
        
  
    
      ¶ 
     
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.