SHARE
TWEET

Untitled

a guest Jul 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TimeOfDay now = TimeOfDay.now();
  2.  
  3.   greetings(String greeting){
  4.     var greeting = now;
  5.     if(greeting <= '11: 59'){
  6.       return 'Morning';
  7.     } else if (greeting > '11:59' && <= '16:59'){
  8.       return 'Afternoon';
  9.     } else if (greeting > '16:59' && <= '23:59'){
  10.       return 'Afternoon';
  11.     } else {
  12.       return 'Morning';
  13.     }
  14.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top