Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock get_time_to_NY( param )
- {
- static res
- switch( param )
- {
- case NYF_DAYS:
- {
- static dd[ 4 ]
- get_time( "%j", dd, charsmax( dd ) )
- return( 365 - str_to_num( dd ) )
- }
- case NYF_HOURS:
- {
- time( res, _, _ )
- return( 24 - res )
- }
- case NYF_MINUTES:
- {
- time( _, res, _ )
- return( 59 - res )
- }
- case NYF_SECONDS:
- {
- time( _, _, res )
- return( 59 - res )
- }
- }
- return -1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement