@@ -19,17 +19,17 @@ us if you're interested in contributing.
1919
2020# Getting Started
2121
22- CCTZ is built using the [ Bazel] ( http://bazel.io ) build system and tested using
23- the [ Google Test] ( https://github.com/google/googletest ) framework.
22+ CCTZ is best built and tested using the [ Bazel] ( http://bazel.io ) build system
23+ and the [ Google Test] ( https://github.com/google/googletest ) framework. (There
24+ is also a simple ` Makefile ` that should work if you're unable to use Bazel.)
2425
25261 . Download/install Bazel http://bazel.io/docs/install.html
26272 . Get the cctz source: ` git clone https://github.com/google/cctz.git ` then `cd
2728 cctz`
28293 . Build cctz and run the tests: ` bazel test :all `
2930
30- Note: If you're unable to use bazel, there is also a ` Makefile ` that should help
31- get you started. When using CCTZ in your own project, you might find it easiest
32- to compile the sources using your existing build system.
31+ Note: When using CCTZ in your own project, you might find it easiest to compile
32+ the sources using your existing build system.
3333
3434Next Steps:
3535
@@ -44,7 +44,7 @@ Next Steps:
4444
4545* [ The concepts presented here describe general truths about the problem domain
4646and are library and language agnostic. An understanding of these concepts helps
47- the programmer correctly reason about even the most complicated time-programming
47+ the programmer correctly reason about even the most- complicated time-programming
4848challenges and produce the simplest possible solutions.] *
4949
5050There are two main ways to think about time in a computer program: as * absolute
@@ -109,6 +109,7 @@ day happens to be the 29th, we also output the day of the week.
109109```
110110#include <iostream>
111111#include "civil_time.h"
112+
112113int main() {
113114 for (cctz::civil_day d(2016, 2, 1); d < cctz::civil_month(2016, 3); ++d) {
114115 std::cout << "Hello " << d;
@@ -143,6 +144,7 @@ like to see what time it was for our friend watching in Sydney Australia.
143144#include <iostream>
144145#include "civil_time.h"
145146#include "time_zone.h"
147+
146148int main() {
147149 cctz::time_zone nyc;
148150 cctz::load_time_zone("America/New_York", &nyc);
0 commit comments