home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / GetTimeDateString.c < prev    next >
MacBinary  |  1994-09-10  |  1.4 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
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, Sat Sep 10 17:47:05 1994, modified Sat Sep 10 17:47:05 1994, creator 'MMCC', type ASCII, 750 bytes "GetTimeDateString.c" , at 0x36e 472 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
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 47 65 74 54 69 6d | 65 44 61 74 65 53 74 72 |..GetTim|eDateStr|
|00000010| 69 6e 67 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |ing.c...|........|
|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 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 02 ee 00 | 00 01 d8 aa 97 d9 d9 aa |........|........|
|00000060| 97 d9 d9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 76 07 00 00 |........|....v...|
|00000080| 2f 2a 0d 47 65 74 54 69 | 6d 65 44 61 74 65 53 74 |/*.GetTi|meDateSt|
|00000090| 72 69 6e 67 0d 0d 52 65 | 74 75 72 6e 20 61 20 6d |ring..Re|turn a m|
|000000a0| 61 6c 6c 6f 63 65 64 20 | 73 74 72 69 6e 67 20 77 |alloced |string w|
|000000b0| 69 74 68 20 74 68 65 20 | 74 69 6d 65 20 61 6e 64 |ith the |time and|
|000000c0| 20 64 61 74 65 20 69 6e | 20 61 20 6e 69 63 65 20 | date in| a nice |
|000000d0| 66 6f 72 6d 61 74 3a 0d | 09 22 35 3a 30 33 20 50 |format:.|."5:03 P|
|000000e0| 4d 2c 20 4d 6f 6e 64 61 | 79 2c 20 53 65 70 74 65 |M, Monda|y, Septe|
|000000f0| 6d 62 65 72 20 31 33 2c | 20 31 39 39 33 22 0d 59 |mber 13,| 1993".Y|
|00000100| 6f 75 20 6d 61 79 20 73 | 75 70 70 6c 79 20 61 20 |ou may s|upply a |
|00000110| 63 61 6c 65 6e 64 61 72 | 20 74 69 6d 65 2c 20 61 |calendar| time, a|
|00000120| 73 20 72 65 74 75 72 6e | 65 64 20 62 79 20 74 69 |s return|ed by ti|
|00000130| 6d 65 28 29 2c 20 6f 72 | 20 79 6f 75 20 6d 61 79 |me(), or| you may|
|00000140| 20 73 75 70 70 6c 79 20 | 30 20 74 6f 0d 75 73 65 | supply |0 to.use|
|00000150| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 74 69 6d | the cur|rent tim|
|00000160| 65 2e 20 0d 0d 48 49 53 | 54 4f 52 59 3a 0d 38 2f |e. ..HIS|TORY:.8/|
|00000170| 39 33 09 64 68 62 2c 6a | 6d 73 09 77 72 6f 74 65 |93.dhb,j|ms.wrote|
|00000180| 20 69 74 2c 20 75 73 69 | 6e 67 20 41 70 70 6c 65 | it, usi|ng Apple|
|00000190| 20 74 6f 6f 6c 62 6f 78 | 2e 0d 39 2f 31 33 2f 39 | toolbox|..9/13/9|
|000001a0| 33 09 64 67 70 09 72 65 | 77 72 6f 74 65 20 69 74 |3.dgp.re|wrote it|
|000001b0| 20 75 73 69 6e 67 20 53 | 74 61 6e 64 61 72 64 20 | using S|tandard |
|000001c0| 43 20 6c 69 62 72 61 72 | 79 2e 0d 39 2f 31 36 2f |C librar|y..9/16/|
|000001d0| 39 33 20 64 68 62 20 46 | 69 78 65 64 20 6e 61 6d |93 dhb F|ixed nam|
|000001e0| 65 20 6f 66 20 72 6f 75 | 74 69 6e 65 20 69 6e 20 |e of rou|tine in |
|000001f0| 50 72 69 6e 74 66 45 78 | 69 74 2e 0d 37 2f 31 36 |PrintfEx|it..7/16|
|00000200| 2f 39 34 20 64 67 70 20 | 73 75 70 70 72 65 73 73 |/94 dgp |suppress|
|00000210| 20 6c 65 61 64 69 6e 67 | 20 7a 65 72 6f 20 69 6e | leading| zero in|
|00000220| 20 68 6f 75 72 73 2e 0d | 2a 2f 0d 23 69 6e 63 6c | hours..|*/.#incl|
|00000230| 75 64 65 20 22 56 69 64 | 65 6f 54 6f 6f 6c 62 6f |ude "Vid|eoToolbo|
|00000240| 78 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 3c 74 |x.h".#in|clude <t|
|00000250| 69 6d 65 2e 68 3e 09 2f | 2a 20 53 74 61 6e 64 61 |ime.h>./|* Standa|
|00000260| 72 64 20 43 20 6c 69 62 | 72 61 72 79 20 2a 2f 0d |rd C lib|rary */.|
|00000270| 0d 63 68 61 72 20 2a 47 | 65 74 54 69 6d 65 44 61 |.char *G|etTimeDa|
|00000280| 74 65 53 74 72 69 6e 67 | 28 74 69 6d 65 5f 74 20 |teString|(time_t |
|00000290| 74 29 0d 7b 0d 09 63 68 | 61 72 20 2a 73 3b 0d 09 |t).{..ch|ar *s;..|
|000002a0| 0d 09 73 3d 6d 61 6c 6c | 6f 63 28 36 34 29 3b 0d |..s=mall|oc(64);.|
|000002b0| 09 69 66 28 73 3d 3d 4e | 55 4c 4c 29 50 72 69 6e |.if(s==N|ULL)Prin|
|000002c0| 74 66 45 78 69 74 28 22 | 47 65 74 54 69 6d 65 44 |tfExit("|GetTimeD|
|000002d0| 61 74 65 53 74 72 69 6e | 67 3a 20 6d 61 6c 6c 6f |ateStrin|g: mallo|
|000002e0| 63 28 36 34 29 20 66 61 | 69 6c 65 64 2e 5c 6e 22 |c(64) fa|iled.\n"|
|000002f0| 29 3b 0d 09 69 66 28 74 | 3d 3d 30 29 74 3d 74 69 |);..if(t|==0)t=ti|
|00000300| 6d 65 28 4e 55 4c 4c 29 | 3b 0d 09 73 74 72 66 74 |me(NULL)|;..strft|
|00000310| 69 6d 65 28 73 2c 36 34 | 2c 22 25 49 3a 25 4d 20 |ime(s,64|,"%I:%M |
|00000320| 25 70 2c 20 25 41 2c 20 | 25 42 20 25 64 2c 20 25 |%p, %A, |%B %d, %|
|00000330| 59 22 2c 6c 6f 63 61 6c | 74 69 6d 65 28 26 74 29 |Y",local|time(&t)|
|00000340| 29 3b 0d 09 69 66 28 73 | 5b 30 5d 3d 3d 27 30 27 |);..if(s|[0]=='0'|
|00000350| 29 73 74 72 63 70 79 28 | 73 2c 73 2b 31 29 3b 0d |)strcpy(|s,s+1);.|
|00000360| 09 72 65 74 75 72 6e 28 | 73 29 3b 0d 7d 0d 00 00 |.return(|s);.}...|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 01 00 00 00 01 8e | 00 00 00 8e 00 00 00 4a |........|.......J|
|00000390| 00 00 0e c7 ab c0 40 15 | 7f fe 07 00 00 00 00 03 |......@.|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 03 |........|........|
|000003b0| 13 47 65 74 54 69 6d 65 | 44 61 74 65 53 74 72 69 |.GetTime|DateStri|
|000003c0| 6e 67 2e 63 02 00 00 00 | 50 61 72 74 53 49 54 21 |ng.c....|PartSIT!|
|000003d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 ab bf ee 60 00 00 | 00 00 00 00 01 d8 00 00 |.....`..|........|
|00000400| 0e c9 37 a6 40 15 7f fe | 07 00 00 00 00 1c 00 00 |..7.@...|........|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 44 00 00 |........|.....D..|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 3c 00 00 |........|.....<..|
|00000430| 00 00 a8 be 4c b3 00 00 | 01 1d 00 00 00 00 00 00 |....L...|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 05 00 00 00 0e cc |........|........|
|00000470| ab be 00 10 7f fe 07 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 00 1e 00 3c 00 24 | 01 dd 02 3d 00 3c 00 24 |.....<.$|...=.<.$|
|00000490| 01 dd 02 3d 00 00 00 00 | 00 00 00 00 00 00 00 00 |...=....|........|
|000004a0| 00 00 00 00 00 1c 00 01 | 00 00 01 f7 00 00 02 08 |........|........|
|000004b0| 11 47 65 74 54 69 6d 65 | 44 61 74 65 53 74 72 69 |.GetTime|DateStri|
|000004c0| 6e 67 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |ng...H..|Monaco..|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 2a 00 03 |........|.....*..|
|000004f0| 01 8d 02 7d 00 2a 00 03 | 01 8d 02 7d aa 97 93 c1 |...}.*..|...}....|
|00000500| 00 00 01 b4 00 00 01 c4 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 01 00 00 00 01 8e 00 00 | 00 8e 00 00 00 4a 00 ae |........|.....J..|
|00000520| 8e 78 1a d0 00 00 00 1c | 00 4a 00 00 4d 50 53 52 |.x......|.J..MPSR|
|00000530| 00 02 00 0a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 03 ef ff ff 00 00 00 22 | 00 00 00 00 03 ed ff ff |......."|........|
|00000550| 00 00 00 42 00 00 00 00 | 00 00 00 00 00 00 00 00 |...B....|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+