@sazuapp/client 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -74,6 +74,30 @@ console.log(result.relationships) // 합형충파해 (Pro)
74
74
 
75
75
  <br/><br/><br/>
76
76
 
77
+ ## 진태양시 옵션 (v0.3.0+ · API v1.1.0+)
78
+
79
+ `trueSolarTime` 로 시각 보정 방식을 선택합니다. 생략 시 한국 만세력 관습(자시 23:30, 경도차 보정)이며, `true` 로 한국천문연구원 방식의 진태양시(자시 23:00, **경도차 + 균시차**)를 적용합니다.
80
+
81
+ ```ts
82
+ // 진태양시(경도 + 균시차) 적용
83
+ const result = await sazu.calculate({
84
+ birthYear: 1990, birthMonth: 11, birthDay: 7,
85
+ birthHour: 23, birthMinute: 20,
86
+ isFemale: false,
87
+ birthCity: '서울',
88
+ trueSolarTime: true, // 기본 false (관습)
89
+ })
90
+
91
+ // 적용 내역은 응답 timezone 에서 확인
92
+ console.log(result.timezone.mode) // 'convention' | 'trueSolar'
93
+ console.log(result.timezone.longitude) // 도시 경도 (°)
94
+ console.log(result.timezone.equationOfTimeMinutes) // 균시차 (분, 관습 모드는 null)
95
+ ```
96
+
97
+ > 같은 생년월일·시각이라도 두 방식의 시주(時柱)가 시(時) 경계 부근에서 달라질 수 있습니다. 문서: https://www.sazu.app/manse-api/docs#birth-city
98
+
99
+ <br/><br/><br/>
100
+
77
101
  ## 음/양력 변환
78
102
 
79
103
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sazuapp/client",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "SAZU API 공식 TypeScript SDK — 사주·만세력·합형충파해·격국·용신 등 14개 명리 분석을 한 줄로.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",