"For His anger is but a moment, His favor is life; weeping may tarry for the night, but joy comes in the morning" (Psalms 30:6). How long is a moment? Rabbi Berechiah in the name of Rabbi Chelbo said: as long as it takes to say it. And the Rabbis said: like the blink of an eye. And Shmuel said: one moment is one part out of fifty-eight thousand eight hundred and forty-eight... no — five thousand and sixty myriad and eight hundred and forty-eight of an hour. Yesterday "and Hannah had no children" (1 Samuel 1:2), and here you say "for the Lord had remembered Hannah" (1 Samuel 2:21). This is the meaning of "For His anger is but a moment, His favor is life; weeping may tarry for the night, but joy comes in the morning."
How Long Is a Moment - Hannah Remembered in Midrash Shmuel
Midrash Shmuel 3:1
כי רגע באפו חיים ברצונו בערב ילין בכי ולבקר רנה (תהלים ל' ו'). כמה הוא רגע, רבי ברכי' בשם רבי חלבו כדי לאומרו, ורבנין אמרין כהרף עין, ושמואל אמר רגע אחד מחמשת אלפים וששת רבוא ושמונה מאות וארבעים ושמונה לשעה, אתמול ולחנה אין ילדים (שמואל א' א' ב'), והכא את אמר כי פקד ה' את חנה וגו' (שם שם כ"א), הוי כי רגע באפו חיים ברצונו בערב ילין בכי ולבקר רנה.