Psa 118:18 YHVH hath chastened me sore: but he hath not given me over unto death.
Psa 118:19 Open to me the gates of righteousness: I will go into them, and I will praise YHVH: (he refers to entering into the temple to worship on the New Moons, and Sabbath Days.)

2Ch 27:3 He built the high gate of the house of YHVH, and on the wall of Ophel he built much.  (gates of righteousness are the gates of His Temple into which if we enter and worship Him on His Correct Appointed Times, He will reveal Himself to us and make us Holy or Righteous)
Exodus 31:13, Ezekiel 20:12, 20 tells us - keeping His Moeds, (going to His Assembly through the gates into His Temple), are a "Sign" between us that He is YHVH Who sanctifies us. And thus are these gates, "gates of righteousness".

Psalms 118:22 Plummet straight line-conjunction-refuse-by the builder-has become-the head-corner. (head is in hebrew "rosh", such as "rosh chodesh" or "New Moon Day" which is in the "Chief" corner of the four quarter-corner shabats in a moon.)

Psa 118:23 This is YHVH'S doing; it is marvellous in our eyes.

Psa 118:24 This is the day (New Moon day) which YHVH hath made; we will rejoice and be glad in it.

Zec 4:10 For who hath despised the day of small things? for they shall rejoice, and shall see the plummet in the hand of Zerubbabel with those seven; they are the eyes of YHVH, which run to and fro through the whole earth.

Those who worship Him as Creator in Revelation 14:7, The Three Angels Message, will honor Him by worshipping Him on His Time Schedule, or by His Clock He established in Genesis chapter 1.

He stands, Yehoshua, by the gate of the Holy City and swings it open to His 144,000, who while they were in a perfect square He had placed "Crowns" upon their heads.

In your mind tilt the graphic below so the sun is at the top and the full moon is at the bottom. Also below is mimicked the actual counter-clockwise motion of the moon's orbit around the earth when viewing the solar system from above.
The hands of the clock-calendar all point straight up on "New Moon Day" which is the day unit of time on which conjunction occurs.

Conjunction, straight line, like a plummet, plumb-bob makes, when the sun moon and earth are in a straight line. When the moon is "highest", pulled by the suns gravity.  
Sun Chief
Corner
by
Plumb-bob
Red=work days, Blue=New Moon & Shabats

Yod
4th qtr
New Moon Day  7  6   5       4  3  2  1 3rd qtr 1st Quarter He
  N.M.-1 29 28 27      26 25 24 23 22 7  
1 2             21 6  
2 3             20 5  
3 4 Earth 19 4
4 5   18 3  
  5 6 17 2  
6 7 16 1  
  7 8 9 10       11 12 13 14 15 2nd qtr   
       He Third Quarter 1st qtr 1   2        3   4   5   6   7 2nd Quarter Vav

 

Here on the sea of glass the 144,000 stood in a perfect square (From the Daystar Vision)