Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 060102150405Z0700 (0.24 sec)

  1. src/vendor/golang.org/x/crypto/cryptobyte/asn1.go

    	if err != nil {
    		return false
    	}
    	if serialized := res.Format(generalizedTimeFormatStr); serialized != t {
    		return false
    	}
    	*out = res
    	return true
    }
    
    const defaultUTCTimeFormatStr = "060102150405Z0700"
    
    // ReadASN1UTCTime decodes an ASN.1 UTCTime into out and advances.
    // It reports whether the read was successful.
    func (s *String) ReadASN1UTCTime(out *time.Time) bool {
    	var bytes String
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. src/encoding/asn1/asn1.go

    // UTCTime
    
    func parseUTCTime(bytes []byte) (ret time.Time, err error) {
    	s := string(bytes)
    
    	formatStr := "0601021504Z0700"
    	ret, err = time.Parse(formatStr, s)
    	if err != nil {
    		formatStr = "060102150405Z0700"
    		ret, err = time.Parse(formatStr, s)
    	}
    	if err != nil {
    		return
    	}
    
    	if serialized := ret.Format(formatStr); serialized != s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
Back to top