Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for wednesday (0.14 sec)

  1. test/fixedbugs/bug381.go

    // want
    //    bug381.go:30: cannot use time.Wednesday (type time.Weekday) as type int in function argument
    
    package main
    
    import (
    	"time"
    	"unsafe"
    )
    
    func f(int)
    
    func main() {
    	unsafe.Alignof(0) // ERROR "unsafe\.Alignof|value computed is not used"
    	f(time.Wednesday) // ERROR "time.Wednesday|incompatible type"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 747 bytes
    - Viewed (0)
  2. src/go/printer/testdata/declarations.input

    func _() {
    	type day struct { n int; short, long string }
    	var (
    		Sunday = day{ 0, "SUN", "Sunday" }
    		Monday = day{ 1, "MON", "Monday" }
    		Tuesday = day{ 2, "TUE", "Tuesday" }
    		Wednesday = day{ 3, "WED", "Wednesday" }
    		Thursday = day{ 4, "THU", "Thursday" }
    		Friday = day{ 5, "FRI", "Friday" }
    		Saturday = day{ 6, "SAT", "Saturday" }
    	)
    }
    
    
    // formatting of multi-line variable declarations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  3. src/go/printer/testdata/declarations.golden

    func _() {
    	type day struct {
    		n		int
    		short, long	string
    	}
    	var (
    		Sunday		= day{0, "SUN", "Sunday"}
    		Monday		= day{1, "MON", "Monday"}
    		Tuesday		= day{2, "TUE", "Tuesday"}
    		Wednesday	= day{3, "WED", "Wednesday"}
    		Thursday	= day{4, "THU", "Thursday"}
    		Friday		= day{5, "FRI", "Friday"}
    		Saturday	= day{6, "SAT", "Saturday"}
    	)
    }
    
    // formatting of multi-line variable declarations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  4. src/time/time_test.go

    	{0, parsedTime{1970, January, 1, 0, 0, 0, 1e8, Thursday, 0, "UTC"}},
    	{1221681866, parsedTime{2008, September, 17, 20, 4, 26, 2e8, Wednesday, 0, "UTC"}},
    }
    
    var localtests = []TimeTest{
    	{0, parsedTime{1969, December, 31, 16, 0, 0, 0, Wednesday, -8 * 60 * 60, "PST"}},
    	{1221681866, parsedTime{2008, September, 17, 13, 4, 26, 0, Wednesday, -7 * 60 * 60, "PDT"}},
    	{2159200800, parsedTime{2038, June, 3, 11, 0, 0, 0, Thursday, -7 * 60 * 60, "PDT"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/go/internal/gccgoimporter/testdata/time.gox

    type <type 46>;
    type <type 3>;
    type <type 33>;
    const Tuesday <type 19> = 2 ;
    var UTC <type 15>;
    func Unix (sec <type -4>, nsec <type -4>) <type 3>;
    const UnixDate = "Mon Jan _2 15:04:05 MST 2006";
    const Wednesday <type 19> = 3 ;
    type <type 19>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  6. src/time/format_test.go

    	{"UnixDate", UnixDate, "Wed Feb  4 21:00:57 PST 2009"},
    	{"RubyDate", RubyDate, "Wed Feb 04 21:00:57 -0800 2009"},
    	{"RFC822", RFC822, "04 Feb 09 21:00 PST"},
    	{"RFC850", RFC850, "Wednesday, 04-Feb-09 21:00:57 PST"},
    	{"RFC1123", RFC1123, "Wed, 04 Feb 2009 21:00:57 PST"},
    	{"RFC1123Z", RFC1123Z, "Wed, 04 Feb 2009 21:00:57 -0800"},
    	{"RFC3339", RFC3339, "2009-02-04T21:00:57-08:00"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. src/time/time.go

    	return "%!Month(" + string(buf[n:]) + ")"
    }
    
    // A Weekday specifies a day of the week (Sunday = 0, ...).
    type Weekday int
    
    const (
    	Sunday Weekday = iota
    	Monday
    	Tuesday
    	Wednesday
    	Thursday
    	Friday
    	Saturday
    )
    
    // String returns the English name of the day ("Sunday", "Monday", ...).
    func (d Weekday) String() string {
    	if Sunday <= d && d <= Saturday {
    		return longDayNames[d]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  8. src/time/format.go

    					return layout[0:i], std, layout[j:]
    				}
    			}
    		}
    	}
    	return layout, 0, ""
    }
    
    var longDayNames = []string{
    	"Sunday",
    	"Monday",
    	"Tuesday",
    	"Wednesday",
    	"Thursday",
    	"Friday",
    	"Saturday",
    }
    
    var shortDayNames = []string{
    	"Sun",
    	"Mon",
    	"Tue",
    	"Wed",
    	"Thu",
    	"Fri",
    	"Sat",
    }
    
    var shortMonthNames = []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    Together with the <a href="#Iota"><code>iota</code> constant generator</a>
    this mechanism permits light-weight declaration of sequential values:
    </p>
    
    <pre>
    const (
    	Sunday = iota
    	Monday
    	Tuesday
    	Wednesday
    	Thursday
    	Friday
    	Partyday
    	numberOfDays  // this constant is not exported
    )
    </pre>
    
    
    <h3 id="Iota">Iota</h3>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. doc/go_spec.html

    Together with the <a href="#Iota"><code>iota</code> constant generator</a>
    this mechanism permits light-weight declaration of sequential values:
    </p>
    
    <pre>
    const (
    	Sunday = iota
    	Monday
    	Tuesday
    	Wednesday
    	Thursday
    	Friday
    	Partyday
    	numberOfDays  // this constant is not exported
    )
    </pre>
    
    
    <h3 id="Iota">Iota</h3>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top