四柱推命・宿曜経の統合データベースを
CSVフォーマットで提供いたします。

四柱推命・宿曜教のDBの事例 1973年10月22日の場合

1973102201,16.92,13.21,5,8,9,10,1,4,11,2,5,13,8
1973102202,16.83,13.29,6,8,9,10,2,4,11,2,5,13,8
1973102203,16.75,13.38,7,8,9,10,3,4,11,2,5,13,8
1973102204,16.67,13.46,8,8,9,10,4,4,11,2,5,13,8
1973102205,16.58,13.54,9,8,9,10,5,4,11,2,5,13,8
1973102206,16.5,13.63,10,8,9,10,6,4,11,2,5,13,8
1973102207,16.42,13.71,1,8,9,10,7,4,11,2,5,13,8
1973102208,16.33,13.79,2,8,9,10,8,4,11,2,5,13,8
1973102209,16.25,13.88,3,8,9,10,9,4,11,2,5,13,8
1973102210,16.17,13.96,4,8,9,10,10,4,11,2,5,13,8
1973102211,16.08,14.04,5,8,9,10,11,4,11,2,5,13,8
1973102212,16,14.13,6,8,9,10,12,4,11,2,5,13,8
1973102213,15.96,14.17,7,8,9,10,1,4,11,2,5,13,8
0-1時生まれ
1-3時生まれ
3-5時生まれ
5-7時生まれ
7-9時生まれ
9-11時生まれ
11-13時生まれ
13-15時生まれ
15-17時生まれ
17-19時生まれ
19-21時生まれ
21-23時生まれ
23-24 時生まれ

フイールドの説明

節入り後の
日数
次の節入りまでの日数 時干 日干 月干 年干 時支 日支 月支 年支 蔵干 27宿 28宿
Next before j10 d10 m10 y10 j12 d12 m12 y12 zokanMMid q27 q28

 

1973年10月22日 10時生まれ(イチロー)の場合

1973102206,16.5,13.63,10,8,9,10,6,4,11,2,5,13,8

j10 = 10
d10 = 8
m10 = 9
y10 = 10
j12 = 6
d12 = 4
m12 = 11
y12 = 2
zokanMMid = 5
q27=13 q28=8

PHPの場合 0 始まりなので、すべて、マイナス1 しておく。

j10 = 9
d10 = 7
m10 = 8
y10 = 9
j12 = 5
d12 = 3
m12 = 10
y12 = 1
zokanMMid = 4
q27=12 q28=7

 

四柱推命・宿曜経 単語定義 (PHP表記)

var $KAN = array("甲","乙","丙","丁","戊","己","庚","辛","壬","癸");
var $SI = array("子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥");

var $TUHEN = array("比肩","劫財","食神","傷官","偏財","正財","偏官","正官","偏印","印綬");
var $UN12 = array("胎","養","長生","沐浴","冠帯","建禄","帝旺","衰","病","死","墓","絶");
var $S27 = array("昴","畢","觜","参","井","鬼","柳","星","張","翼","珍","角","亢","氏", "房","心","尾","箕","斗","","女","虚","危","室","壁","奎","婁","胃");

共通テーブル(PHP表記)

//蔵干テーブル

var $ZKANSTBL = array(9,5,0,1,4,2,3,5,6,7,4,8);

//通変星テーブル

var $HENTBL = array( array(0,1,2,3,4,5,6,7,8,9),
array(1,0,3,2,5,4,7,6,9,8),
array(8,9,0,1,2,3,4,5,6,7),
array(9,8,1,0,3,2,5,4,7,6),
array(6,7,8,9,0,1,2,3,4,5),
array(7,6,9,8,1,0,3,2,5,4),
array(4,5,6,7,8,9,0,1,2,3),
array(5,4,7,6,9,8,1,0,3,2),
array(2,3,4,5,6,7,8,9,0,1),
array(3,2,5,4,7,6,9,8,1,0));


//12運星テーブル


var $UNTBL = array( array(3,4,5,6,7,8,9,10,11,0,1,2),
array(8,7,6,5,4,3,2,1,0,11,10,9),
array(0,1,2,3,4,5,6,7,8,9,10,11),
array(11,10,9,8,7,6,5,4,3,2,1,0),
array(0,1,2,3,4,5,6,7,8,9,10,11),
array(11,10,9,8,7,6,5,4,3,2,1,0),
array(9,10,11,0,1,2,3,4,5,6,7,8),
array(2,1,0,11,10,9,8,7,6,5,4,3),
array(6,7,8,9,10,11,0,1,2,3,4,5),
array(5,4,3,2,1,0,11,10,9,8,7,6) );