[Gridflow-cvs] [svn] commit: r4882 - /trunk/doc/flow_classes/unix_time-help.pd

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Dec 18 02:07:59 EST 2009


Author: matju
Date: Fri Dec 18 02:07:58 2009
New Revision: 4882

Log:
this thing completely slipped through the cracks : [unix_time] doesn't behave as stated, since 2004 or longer.

Modified:
    trunk/doc/flow_classes/unix_time-help.pd

Modified: trunk/doc/flow_classes/unix_time-help.pd
==============================================================================
--- trunk/doc/flow_classes/unix_time-help.pd (original)
+++ trunk/doc/flow_classes/unix_time-help.pd Fri Dec 18 02:07:58 2009
@@ -1,50 +1,67 @@
-#N canvas 679 22 632 619 10;
-#X obj 109 184 unix_time;
-#X obj 109 153 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+#N canvas 648 22 632 642 10;
+#X obj 139 116 unix_time;
+#X obj 120 97 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
 -1;
-#X obj 26 243 #to_list;
-#X obj 109 111 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-1;
-#X obj 27 321 display;
-#X obj 109 129 metro 500;
-#X text 32 302 <-- Ascii format for the date;
-#X obj 326 292 display;
-#X obj 141 242 display;
-#X obj 325 266 display;
-#X obj 324 241 sprintf %04d%02d%02d-%02d%02d%02d;
+#X obj 139 79 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+;
+#X obj 140 189 display;
+#X obj 139 97 metro 500;
+#X text 145 152 <-- Ascii format for the date;
+#X obj 360 134 display;
+#X obj 165 136 display;
+#X obj 360 114 display;
+#X obj 359 94 sprintf %04d%02d%02d-%02d%02d%02d;
 #X obj 0 0 doc_h;
-#X obj 3 356 doc_c 0;
-#X obj 3 396 doc_i 1;
-#X obj 3 471 doc_o 3;
-#X obj 14 426 doc_ii 0;
-#X obj 14 501 doc_oo 0;
-#X obj 14 523 doc_oo 1;
-#X obj 14 545 doc_oo 2;
-#X text 9 32 This object returns the Unix timestamp. The first outlet
-does so with ASCII \, the second in seconds and the third outlet outputs
-the fractions of seconds up to 1/100 0 th of a second which is useful
-for creating filenames.;
-#X text 232 426 A bang at the left inlet will tell [unix_time] to get
+#X obj 3 225 doc_c 0;
+#X obj 3 265 doc_i 1;
+#X obj 3 340 doc_o 3;
+#X obj 14 295 doc_ii 0;
+#X obj 14 370 doc_oo 0;
+#X obj 14 392 doc_oo 1;
+#X obj 14 471 doc_oo 2;
+#X text 232 295 A bang at the left inlet will tell [unix_time] to get
 the current Unix timestamp and send it to the outlets.;
-#X text 232 501 Outputs the time and date in ASCII format.;
-#X text 232 523 Outputs the Unix timestamp in seconds.;
-#X text 232 545 Outputs the fractions of a second up to 10 microseconds
-(?) (actual precision is probably platform-dependent...);
-#X obj 97 426 doc_m i0 bang;
-#X obj 97 501 doc_m o0 list;
-#X obj 97 523 doc_m o1 list;
-#X obj 97 545 doc_m o2 list;
-#X obj 0 590 doc_f;
-#X connect 0 0 2 0;
-#X connect 0 1 8 0;
-#X connect 0 2 7 0;
-#X connect 0 2 10 0;
+#X obj 97 295 doc_m i0 bang;
+#X obj 97 392 doc_m o1 list;
+#X obj 97 471 doc_m o2 list;
+#X obj 0 613 doc_f;
+#X text 232 370 the time and date in ASCII format.;
+#X text 232 414 \$2 = number of seconds since last midnight;
+#X text 232 392 \$1 = the day number \, where 0 stands for 1 january
+1970;
+#X obj 139 169 #to_symbol;
+#X obj 97 370 doc_m o0 list;
+#X obj 62 83 loadbang;
+#X text 9 32 This object returns a Unix timestamp for the current time
+\, which means it's the amount of time since 1 january 1970 at midnight.
+This is provided in three different ways (see below).;
+#X text 232 436 \$3 = number of microseconds since last second boundary
+(probably not precise to the closest microsecond);
+#X text 232 493 \$2 = month number (1 stands for january);
+#X text 232 471 \$1 = year number (2009 stands for 2009);
+#X text 232 515 \$3 = day number (1 stands for 1st);
+#X text 232 537 \$4 = hour number (0 stands for midnight \, 23 for
+11 PM);
+#X text 232 559 \$5 = minutes (0 to 59);
+#X text 232 581 \$6 = seconds (0 to 59);
+#X connect 0 0 26 0;
+#X connect 0 1 7 0;
+#X connect 0 2 6 0;
+#X connect 0 2 9 0;
 #X connect 1 0 0 0;
 #X connect 2 0 4 0;
-#X connect 3 0 5 0;
-#X connect 5 0 1 0;
-#X connect 10 0 9 0;
-#X connect 24 1 20 0;
-#X connect 25 1 21 0;
-#X connect 26 1 22 0;
+#X connect 4 0 0 0;
+#X connect 9 0 8 0;
+#X connect 19 1 18 0;
+#X connect 20 1 25 0;
+#X connect 20 1 24 0;
+#X connect 20 1 30 0;
+#X connect 21 1 32 0;
+#X connect 21 1 31 0;
+#X connect 21 1 33 0;
+#X connect 21 1 34 0;
+#X connect 21 1 35 0;
+#X connect 21 1 36 0;
+#X connect 26 0 3 0;
 #X connect 27 1 23 0;
+#X connect 28 0 0 0;



More information about the Gridflow-cvs mailing list