An open API service indexing awesome lists of open source software.

https://github.com/hellflame/binary_clock


https://github.com/hellflame/binary_clock

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Binary Clock

A Binary Watch Presentation in Terminal

在终端显示的二进制时刻表

### 安装

```bash
$ pip install bwatch --upgrade
# or
$ sudo install bwatch --upgrade
# if permission issue happened on mac os
$ pip install bwatch --user --upgrade
```

### 使用

```bash
$ bwatch
```

#### i. 帮助信息

```bash
$ bwatch -h # bwatch --help
```

#### ii. 版本信息

```bash
$ bwatch -v # bwatch --version
```

#### iii. 切换主题

```bash
$ bwatch -t THEME # bwatch --theme THEME
```

查看主题列表:

```bash
$ bwatch -l # bwatch --list-theme
```

![](https://static.hellflame.net/resource/5cee0ec2048f267969286c887dff210a)

![](https://static.hellflame.net/resource/ad395e206dc6b438bc8fb98b8599a610)

#### iv. 显示某一时刻

> 只显示当前时刻的时间

```bash
$ bwatch -g # bwatch --glimpse
```

#### v. 抑制彩色输出(会比较难以辨认)

```bash
$ bwatch -nc # bwatch --no-color
```

![](https://static.hellflame.net/resource/2b2209f2a82cc7b0e64d97d9cc24e850)

#### vi. 显示完整日期时间

> 要得知每一列代表的含义的话,可以用 `bwatch —hint -f`

```bash
$ bwatch -f # bwatch --full
```

![](https://static.hellflame.net/resource/81f431b429215542ca952edbdbfce00c)

日期月份和天数、星期、时、分、秒

#### vii. 显示每一列含义并转换为十进制

```bash
$ bwatch --hint
```

![](https://static.hellflame.net/resource/66740ccd22ff360f9bdbfb6024b093ab)

#### viii. 使用UTC时间

> 0 时区

```bash
$ bwatch -u # bwatch --universal
```

#### viv. 设置时区

```bash
# 东八区
$ bwatch -z 8 # bwatch --zone 8
```

#### 命令组合

```bash
bwatch -f --hint
bwatch -f -t basic
bwatch -g --hint
...
```

For Fun Only!