From 43a123c1ae6613b3efeed291fa552ecd909d3acf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 16 Apr 2024 21:23:18 +0200 Subject: Adding upstream version 1.20.14. Signed-off-by: Daniel Baumann --- src/go/internal/gccgoimporter/testdata/time.gox | 142 ++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 src/go/internal/gccgoimporter/testdata/time.gox (limited to 'src/go/internal/gccgoimporter/testdata/time.gox') diff --git a/src/go/internal/gccgoimporter/testdata/time.gox b/src/go/internal/gccgoimporter/testdata/time.gox new file mode 100644 index 0000000..a6822ea --- /dev/null +++ b/src/go/internal/gccgoimporter/testdata/time.gox @@ -0,0 +1,142 @@ +v2; +package time; +pkgpath time; +import errors errors "errors"; +import sync sync "sync"; +import syscall syscall "syscall"; +init time time..import runtime runtime..import sync sync..import syscall syscall..import; +init_graph 0 1 0 2 0 3 2 1 3 1 3 2; +const ANSIC = "Mon Jan _2 15:04:05 2006"; +func After (d + func (d ) String () ; + func (d ) Nanoseconds () ; + func (d ) Seconds () ; + func (d ) Minutes () ; + func (d ) Hours () ; +>) ; .time.nsec ; .time.loc ; .time.zone ; .time.offset ; .time.isDST ; }>>>; .time.tx ; .time.index ; .time.isstd ; .time.isutc ; }>>>; .time.cacheStart ; .time.cacheEnd ; .time.cacheZone >; }> + func (l >) .time.get () ; + func (l ) String () ; + func (l ) .time.lookup (sec ) (name , offset , isDST , start , end ); + func (l ) .time.lookupFirstZone () ; + func (l ) .time.firstZoneUsed () ; + func (l ) .time.lookupName (name , unix ) (offset , isDST , ok ); +>>; }> + func (t ) String () ; + func (t ) Format (layout ) ; + func (t ) AppendFormat (b >, layout ) >; + func (t ) After (u ) ; + func (t ) Before (u ) ; + func (t ) Equal (u ) ; + func (t ) IsZero () ; + func (t ) .time.abs () ; + func (t ) .time.locabs () (name , offset , abs ); + func (t ) Date () (year , month + func (m ) String () ; +>, day ); + func (t ) Year () ; + func (t ) Month () ; + func (t ) Day () ; + func (t ) Weekday () + func (d ) String () ; +>; + func (t ) ISOWeek () (year , week ); + func (t ) Clock () (hour , min , sec ); + func (t ) Hour () ; + func (t ) Minute () ; + func (t ) Second () ; + func (t ) Nanosecond () ; + func (t ) YearDay () ; + func (t ) Add (d ) ; + func (t ) Sub (u ) ; + func (t ) AddDate (years , months , days ) ; + func (t ) .time.date (full ) (year , month , day , yday ); + func (t ) UTC () ; + func (t ) Local () ; + func (t ) In (loc >) ; + func (t ) Location () >; + func (t ) Zone () (name , offset ); + func (t ) Unix () ; + func (t ) UnixNano () ; + func (t ) MarshalBinary () (? >, ? ); + func (t >) UnmarshalBinary (data >) ; + func (t ) GobEncode () (? >, ? ); + func (t ) GobDecode (data >) ; + func (t ) MarshalJSON () (? >, ? ); + func (t ) UnmarshalJSON (data >) ; + func (t ) MarshalText () (? >, ? ); + func (t ) UnmarshalText (data >) ; + func (t ) Truncate (d ) ; + func (t ) Round (d ) ; +>>; +func AfterFunc (d , f ) >; .time.r ; .time.when ; .time.period ; .time.f , ? )>; .time.arg ; .time.seq ; }>>; }> + func (t >) Stop () ; + func (t ) Reset (d ) ; +>>; +const April = 4 ; +const August = 8 ; +func Date (year , month , day , hour , min , sec , nsec , loc >) ; +const December = 12 ; +type ; +const February = 2 ; +func FixedZone (name , offset ) ; +const Friday = 5 ; +const Hour = 3600000000000 ; +const January = 1 ; +const July = 7 ; +const June = 6 ; +const Kitchen = "3:04PM"; +func LoadLocation (name ) (? , ? ); +var Local ; +type ; +var LocationSource ) (? >, ? )>; +const March = 3 ; +const May = 5 ; +const Microsecond = 1000 ; +const Millisecond = 1000000 ; +const Minute = 60000000000 ; +const Monday = 1 ; +type ; +const Nanosecond = 1 ; +func NewTicker (d ) >; .time.r ; }> + func (t >) Stop (); +>>; +func NewTimer (d ) ; +const November = 11 ; +func Now () ; +const October = 10 ; +func Parse (layout , value ) (? , ? ); +func ParseDuration (s ) (? , ? ); +type ; Value ; LayoutElem ; ValueElem ; Message ; }> + func (e >) Error () ; +>; +func ParseInLocation (layout , value , loc >) (? , ? ); +const RFC1123 = "Mon, 02 Jan 2006 15:04:05 MST"; +const RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700"; +const RFC3339 = "2006-01-02T15:04:05Z07:00"; +const RFC3339Nano = "2006-01-02T15:04:05.999999999Z07:00"; +const RFC822 = "02 Jan 06 15:04 MST"; +const RFC822Z = "02 Jan 06 15:04 -0700"; +const RFC850 = "Monday, 02-Jan-06 15:04:05 MST"; +const RubyDate = "Mon Jan 02 15:04:05 -0700 2006"; +const Saturday = 6 ; +const Second = 1000000000 ; +const September = 9 ; +func Since (t ) ; +func Sleep (d ); +const Stamp = "Jan _2 15:04:05"; +const StampMicro = "Jan _2 15:04:05.000000"; +const StampMilli = "Jan _2 15:04:05.000"; +const StampNano = "Jan _2 15:04:05.000000000"; +const Sunday = 0 ; +const Thursday = 4 ; +func Tick (d ) >; +type ; +type ; +type ; +const Tuesday = 2 ; +var UTC ; +func Unix (sec , nsec ) ; +const UnixDate = "Mon Jan _2 15:04:05 MST 2006"; +const Wednesday = 3 ; +type ; +checksum C04E7F45B20C621A25DC74E9B13EA4FF6732E226; -- cgit v1.2.3