Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DayOfWeek (0.6 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    	}
    	buf = bytes.TrimSpace(buf)
    	if len(buf) == 0 {
    		return 0, fmt.Errorf("empty weekends file")
    	}
    	dayofweek := time.Weekday(buf[0] - '0') // 0 is Sunday
    	// paranoia to make sure the value is legal
    	dayofweek %= 7
    	if dayofweek < 0 {
    		dayofweek += 7
    	}
    	today := now.Weekday()
    	incr := dayofweek - today
    	if incr <= 0 {
    		incr += 7
    	}
    	return int(incr), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. src/syscall/types_windows.go

    	ParentProcessID uint32
    	PriClassBase    int32
    	Flags           uint32
    	ExeFile         [MAX_PATH]uint16
    }
    
    type Systemtime struct {
    	Year         uint16
    	Month        uint16
    	DayOfWeek    uint16
    	Day          uint16
    	Hour         uint16
    	Minute       uint16
    	Second       uint16
    	Milliseconds uint16
    }
    
    type Timezoneinformation struct {
    	Bias         int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. src/time/format_test.go

    	{"YearDay", "Jan  2 002 __2 2", "Feb  4 035  35 4"},
    	{"Year", "2006 6 06 _6 __6 ___6", "2009 6 09 _6 __6 ___6"},
    	{"Month", "Jan January 1 01 _1", "Feb February 2 02 _2"},
    	{"DayOfMonth", "2 02 _2 __2", "4 04  4  35"},
    	{"DayOfWeek", "Mon Monday", "Wed Wednesday"},
    	{"Hour", "15 3 03 _3", "21 9 09 _9"},
    	{"Minute", "4 04 _4", "0 00 _0"},
    	{"Second", "5 05 _5", "57 57 _57"},
    }
    
    func TestFormat(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top