home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-06-03 | 1.6 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: DatedString.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Jun 3 01:05:05 1994, modified Fri Jun 3 01:05:05 1994, creator 'CWIE', type ASCII, 973 bytes "DatedString.c" , at 0x44d 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 44 61 74 65 64 53 | 74 72 69 6e 67 2e 63 00 |..DatedS|tring.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 cd 00 | 00 01 9a aa 14 6a 81 aa |........|.....j..|
|00000060| 14 6a 81 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.j......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 14 f9 00 00 |........|........|
|00000080| 2f 2a 0d 44 61 74 65 64 | 53 74 72 69 6e 67 2e 63 |/*.Dated|String.c|
|00000090| 0d 72 65 74 75 72 6e 73 | 20 61 20 70 6f 69 6e 74 |.returns| a point|
|000000a0| 65 72 20 74 6f 20 61 20 | 73 74 72 69 6e 67 20 72 |er to a |string r|
|000000b0| 65 70 72 65 73 65 6e 74 | 69 6e 67 20 74 68 65 20 |epresent|ing the |
|000000c0| 74 69 6d 65 20 69 6e 20 | 61 20 66 6f 72 6d 20 73 |time in |a form s|
|000000d0| 75 69 74 61 62 6c 65 20 | 66 6f 72 0d 75 73 65 20 |uitable |for.use |
|000000e0| 61 73 20 61 20 75 6e 69 | 71 75 65 20 66 69 6c 65 |as a uni|que file|
|000000f0| 6e 61 6d 65 20 65 78 74 | 65 6e 73 69 6f 6e 2c 20 |name ext|ension, |
|00000100| 65 2e 67 2e 20 22 38 39 | 30 36 32 35 30 31 35 39 |e.g. "89|06250159|
|00000110| 35 39 22 2c 20 74 68 61 | 74 20 0d 73 6f 72 74 73 |59", tha|t .sorts|
|00000120| 20 69 6e 20 63 68 72 6f | 6e 6f 6c 6f 67 69 63 61 | in chro|nologica|
|00000130| 6c 20 6f 72 64 65 72 2e | 20 54 68 65 20 73 75 70 |l order.| The sup|
|00000140| 70 6c 69 65 64 20 74 69 | 6d 65 20 73 68 6f 75 6c |plied ti|me shoul|
|00000150| 64 20 62 65 20 6f 62 74 | 61 69 6e 65 64 20 62 79 |d be obt|ained by|
|00000160| 0d 63 61 6c 6c 69 6e 67 | 20 41 70 70 6c 65 27 73 |.calling| Apple's|
|00000170| 20 47 65 74 44 61 74 65 | 54 69 6d 65 28 29 20 6f | GetDate|Time() o|
|00000180| 72 20 53 74 61 6e 64 61 | 72 64 20 43 27 73 20 74 |r Standa|rd C's t|
|00000190| 69 6d 65 28 29 2e 20 0d | 42 6f 74 68 20 72 65 74 |ime(). .|Both ret|
|000001a0| 75 72 6e 20 73 65 63 6f | 6e 64 73 20 73 69 6e 63 |urn seco|nds sinc|
|000001b0| 65 20 6d 69 64 6e 69 67 | 68 74 20 4a 61 6e 75 61 |e midnig|ht Janua|
|000001c0| 72 79 20 31 2c 20 31 39 | 30 34 2e 0d 0d 48 49 53 |ry 1, 19|04...HIS|
|000001d0| 54 4f 52 59 3a 0d 31 39 | 38 39 20 64 67 70 20 77 |TORY:.19|89 dgp w|
|000001e0| 72 6f 74 65 20 69 74 2e | 0d 32 2f 32 35 2f 39 34 |rote it.|.2/25/94|
|000001f0| 09 64 67 70 09 4e 6f 74 | 65 64 20 61 62 6f 76 65 |.dgp.Not|ed above|
|00000200| 20 68 6f 77 20 74 6f 20 | 67 65 74 20 74 68 65 20 | how to |get the |
|00000210| 74 69 6d 65 2e 0d 33 2f | 31 39 2f 39 34 09 64 67 |time..3/|19/94.dg|
|00000220| 70 20 52 65 6d 6f 76 65 | 64 20 74 68 65 20 64 6f |p Remove|d the do|
|00000230| 74 73 20 62 65 63 61 75 | 73 65 20 74 68 65 20 73 |ts becau|se the s|
|00000240| 74 72 69 6e 67 20 77 61 | 73 20 74 6f 6f 20 6c 6f |tring wa|s too lo|
|00000250| 6e 67 2c 20 75 73 69 6e | 67 20 75 70 20 6e 65 61 |ng, usin|g up nea|
|00000260| 72 6c 79 0d 09 74 68 65 | 20 6d 61 78 69 6d 75 6d |rly..the| maximum|
|00000270| 20 6c 65 6e 67 74 68 20 | 61 20 66 69 6c 65 6e 61 | length |a filena|
|00000280| 6d 65 2e 0d 35 2f 32 38 | 2f 39 34 09 64 67 70 20 |me..5/28|/94.dgp |
|00000290| 72 65 6e 61 6d 65 64 20 | 66 72 6f 6d 20 22 44 61 |renamed |from "Da|
|000002a0| 74 65 53 74 72 69 6e 67 | 22 20 74 6f 20 22 44 61 |teString|" to "Da|
|000002b0| 74 65 64 53 74 72 69 6e | 67 22 20 74 6f 20 61 76 |tedStrin|g" to av|
|000002c0| 6f 69 64 20 63 6f 6e 66 | 6c 69 63 74 20 77 69 74 |oid conf|lict wit|
|000002d0| 68 0d 09 41 70 70 6c 65 | 27 73 20 55 6e 69 76 65 |h..Apple|'s Unive|
|000002e0| 72 73 61 6c 20 48 65 61 | 64 65 72 73 2e 20 54 68 |rsal Hea|ders. Th|
|000002f0| 61 6e 6b 73 20 74 6f 20 | 42 6f 62 20 44 6f 75 67 |anks to |Bob Doug|
|00000300| 68 65 72 74 79 20 0d 09 | 28 77 6f 6c 66 67 61 6e |herty ..|(wolfgan|
|00000310| 67 40 63 61 74 73 2e 75 | 63 73 63 2e 65 64 75 29 |g@cats.u|csc.edu)|
|00000320| 20 66 6f 72 20 72 65 70 | 6f 72 74 69 6e 67 20 74 | for rep|orting t|
|00000330| 68 65 20 69 6e 63 6f 6d | 70 61 74 69 62 69 6c 69 |he incom|patibili|
|00000340| 74 79 2e 0d 2a 2f 0d 23 | 69 6e 63 6c 75 64 65 20 |ty..*/.#|include |
|00000350| 22 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 2e 68 22 |"VideoTo|olbox.h"|
|00000360| 0d 0d 63 68 61 72 20 2a | 44 61 74 65 64 53 74 72 |..char *|DatedStr|
|00000370| 69 6e 67 28 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |ing(unsi|gned lon|
|00000380| 67 20 73 65 63 6f 6e 64 | 73 29 0d 7b 0d 09 44 61 |g second|s).{..Da|
|00000390| 74 65 54 69 6d 65 52 65 | 63 20 74 3b 0d 09 73 74 |teTimeRe|c t;..st|
|000003a0| 61 74 69 63 20 63 68 61 | 72 20 64 61 74 65 53 74 |atic cha|r dateSt|
|000003b0| 72 69 6e 67 5b 32 36 5d | 3b 0d 09 0d 09 53 65 63 |ring[26]|;....Sec|
|000003c0| 73 32 44 61 74 65 28 73 | 65 63 6f 6e 64 73 2c 26 |s2Date(s|econds,&|
|000003d0| 74 29 3b 0d 09 73 70 72 | 69 6e 74 66 28 64 61 74 |t);..spr|intf(dat|
|000003e0| 65 53 74 72 69 6e 67 2c | 22 25 30 32 64 25 30 32 |eString,|"%02d%02|
|000003f0| 64 25 30 32 64 25 30 32 | 64 25 30 32 64 25 30 32 |d%02d%02|d%02d%02|
|00000400| 64 22 2c 74 2e 79 65 61 | 72 2d 31 39 30 30 2c 74 |d",t.yea|r-1900,t|
|00000410| 2e 6d 6f 6e 74 68 2c 74 | 2e 64 61 79 2c 74 2e 68 |.month,t|.day,t.h|
|00000420| 6f 75 72 2c 74 2e 6d 69 | 6e 75 74 65 2c 74 2e 73 |our,t.mi|nute,t.s|
|00000430| 65 63 6f 6e 64 29 3b 0d | 09 72 65 74 75 72 6e 20 |econd);.|.return |
|00000440| 64 61 74 65 53 74 72 69 | 6e 67 3b 0d 7d 00 00 00 |dateStri|ng;.}...|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 40 00 00 00 00 00 04 | 00 00 00 04 b2 c0 00 00 |.@......|........|
|000004b0| 0d 44 61 74 65 64 53 74 | 72 69 6e 67 2e 63 02 00 |.DatedSt|ring.c..|
|000004c0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 3c 01 20 |..TEXTCW|IE...<. |
|000004d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 3c 01 20 |..TEXTCW|IE...<. |
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 aa 0c 3f 7d 00 00 | 03 cd 00 00 01 9a 11 04 |....?}..|........|
|00000500| 02 88 84 02 60 00 70 00 | 00 78 3c 00 00 00 00 00 |....`.p.|.x<.....|
|00000510| 00 00 00 00 00 00 00 80 | 07 00 00 00 00 c8 00 00 |........|........|
|00000520| 00 02 00 00 00 00 01 55 | 40 00 00 00 00 00 6f ce |.......U|@.....o.|
|00000530| 7f 25 22 50 00 09 c9 cf | 84 f1 fc e7 00 00 18 70 |.%"P....|.......p|
|00000540| 4f 1c e7 bc e4 50 51 44 | 14 4e 78 e7 8e fa 31 82 |O....PQD|.Nx...1.|
|00000550| 8c 5e a0 a0 20 20 01 01 | 81 08 a3 00 00 00 00 00 |.^.. ..|........|
|00000560| 40 00 00 00 02 93 44 21 | cf 44 e4 48 22 95 46 01 |@.....D!|.D.H".F.|
|00000570| 04 a4 cd aa 20 8a 95 10 | 4a 4f 91 06 88 0f 38 84 |.... ...|JO....8.|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 03 | 00 04 00 3d 00 03 01 dc |........|...=....|
|000005b0| 02 7d 00 3d 00 03 01 dc | 02 7d ac 33 06 61 00 00 |.}.=....|.}.3.a..|
|000005c0| 03 0e 00 00 03 19 00 00 | 00 00 00 00 00 00 00 04 |........|........|
|000005d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000005e0| 00 00 00 46 00 59 82 58 | 2a 9a 00 00 00 1c 00 46 |...F.Y.X|*......F|
|000005f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000600| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000610| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+