-
/* Date.test UnitTest.gui */ TestDate : UnitTest { test_creation { var d = Date.new; var e = Date.localtime; this.assertFloatEquals(d.rawSeconds, e.rawSeconds, "new with no args == localtime", 0.5); e = Date(rawSeconds: d.rawSeconds); // cr ...
-
... e { *tgzSC { // make tgz archive of currently running version of sc, with build date for backup var cwd, date; this.deprecated( thisMethod ); cwd = File.getcwd; date = File.getBuildDate; // only for wesleyan build date = date.replace(".", " ...
-
... l of daytime-bound tasks, this is simplest. // when one wants to turn groups of date/tasks on and off, // it is easiest to put them in separate named daytimers. DayTimer .top; // many class methods are redirected as instance methods to DayT ...
-
DayTimer { classvar <all, <top; var <dates, <skip, <name; *new { |name, id, test, func| var res = this.at(name); if (id.notNil) { res.putDate(id, [test, func]) }; ^res; } *at { |name| ^all[name] ?? { ^super.new.init(name) }; } init { |innam ...
-
... stname) }; initialized = true; } *makeList { ^SortedList[].function_({ |a,b| a[\date] > b[\date] }); } *new { |name,collection| ^super.new.init(name,collection); } init{ |name,collection| if ( initialized.not ){ this.class.makeBackupFolder; ...
-
... e: "A#001.aif" Url: http://freesound.iua.upf.edu/samplesViewSingle.php?id=23645 Date of upload: 2006-10-12 13:58:58 Designer / Creator / Uploader: Name: "loofa" Url: http://freesound.iua.upf.edu/usersViewSingle.php?id=149377 Description: Ta ...
-
... = this.getDataForRelToNow(1); // decimal daytime of the current day var phase = Date.gmtime.rawSeconds % 86400 / 86400; // interpolate between the two closest data points ^(prev + ((next-prev)* phase)); } getDataForRelToNow { |days = 0| var ...
-
... LeapYear } *daysInYear {|year| ^(this.isLeapYear(year)).if(366, 365) } *toJulianDate {|year = 2022, month =1, day = 1| var b; // [year, month, day].postln; if (month <= 2, { year = year - 1; month = month + 12; } ); b = 2 - trunc(year/100) ...
-
... ere the desired spatdif meta info var fileName; var extensions; var author,host,date,session,location,annotation; fileName = "TimeFileLog" ++ "_" ++ Date.localtime.stamp ++ ".txt"; extensions = ["jack","distance-cues"]; // author = host = " ...
-
... folder which will be used for backups. *makeList create a SortedList sorted by date Accessing Instance and Class Variables addData(data,date,overwrite) Add data to the collection data The data to be added. date The time stamp of the data. ...