Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for timeToMsDosTime (0.2 sec)

  1. src/archive/zip/struct.go

    		int(dosTime>>5&0x3f),
    		int(dosTime&0x1f*2),
    		0, // nanoseconds
    
    		time.UTC,
    	)
    }
    
    // timeToMsDosTime converts a time.Time to an MS-DOS date and time.
    // The resolution is 2s.
    // See: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-filetimetodosdatetime
    func timeToMsDosTime(t time.Time) (fDate uint16, fTime uint16) {
    	fDate = uint16(t.Day() + int(t.Month())<<5 + (t.Year()-1980)<<9)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
Back to top