• Home
  • History
  • Annotate
  • only in /external/icu/icu4c/source/samples/date/
NameDateSize

..10-Aug-20184 KiB

date.c10-Aug-20189.6 KiB

date.vcxproj10-Aug-201813.8 KiB

date.vcxproj.filters10-Aug-20181.1 KiB

Makefile.in10-Aug-20181.7 KiB

readme.txt10-Aug-20182.3 KiB

uprint.c10-Aug-20182 KiB

uprint.h10-Aug-2018991

readme.txt

1Copyright (C) 2016 and later: Unicode, Inc. and others.
2License & terms of use: http://www.unicode.org/copyright.html#License
3
4Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved.
5icudate: a sample program which displays the current date
6
7This sample demonstrates
8         Formatting a date
9         Outputting text in the default codepage to the console
10
11         
12Files:
13    date.c                      Main source file
14    uprint.h                    codepage output convenience header
15    uprint.h                    codepage output convenience implementation
16    date.sln                    Windows MSVC workspace.  Double-click this to get started.
17    date.vcproj                 Windows MSVC project file
18
19To Build icudate on Windows
20    1.  Install and build ICU
21    2.  In MSVC, open the workspace file icu\samples\date\date.sln
22    3.  Choose a Debug or Release build.
23    4.  Build.
24	
25To Run on Windows
26    1.  Start a command shell window
27    2.  Add ICU's bin directory to the path, e.g.
28            set PATH=c:\icu\bin;%PATH%
29        (Use the path to where ever ICU is on your system.)
30    3.  cd into the icudate directory, e.g.
31            cd c:\icu\source\samples\date\debug
32    4.  Run it (Warning: Be careful, 'date' is also a system command on many systems)
33            .\date
34
35To Build on Unixes
36    1.  Build ICU.  icudate is built automatically by default unless samples are turned off.
37        Specify an ICU install directory when running configure,
38        using the --prefix option.  The steps to build ICU will look something
39        like this:
40           cd <icu directory>/source
41           runConfigureICU <platform-name> --prefix <icu install directory> [other options]
42           gmake all
43           
44    2.  Install ICU, 
45           gmake install
46           
47 To Run on Unixes
48           cd <icu directory>/source/samples/date
49           
50           gmake check
51               -or- 
52
53           export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
54           date
55           
56           
57 Note:  The name of the LD_LIBRARY_PATH variable is different on some systems.
58        If in doubt, run the sample using "gmake check", and note the name of
59        the variable that is used there.  LD_LIBRARY_PATH is the correct name
60        for Linux and Solaris.
61
62