![]() |
Time#thursday?() is a Time class method which checks whether the time represents thursday.
Example #1 :
Output : Time a : 2019-01-01 00:00:00 +0000 Time b : 2019-10-01 00:00:00 +0000 Time c : 2019-12-31 00:00:00 +0000 Time a thursday? form : false Time b thursday? form : false Time c thursday? form : false Example #2 :
Output : Time a : 2019-08-27 12:00:29 +0000 Time b : 1000-10-10 00:00:00 +0000 Time c : 2020-12-01 00:00:00 +0000 Time a thursday? form : false Time b thursday? form : false Time c thursday? form : false |
Reffered: https://www.geeksforgeeks.org
Ruby |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 7 |