Advertisement
roman_gemini

LOL

Jul 15th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function GetLongFromData(InDay As Integer, InMonth As Integer, InYear As Integer) As Integer
  2.  
  3. If InYear Mod 4 = 0 Then N = 1 Else N = 0
  4. If InMonth = 1 Then temp = InDay
  5. If InMonth = 2 Then temp = InDay + 31
  6. If InMonth = 3 Then temp = InDay + 31 + 28 + N
  7. If InMonth = 4 Then temp = InDay + 31 + 28 + 31 + N
  8. If InMonth = 5 Then temp = InDay + 31 + 28 + 31 + 30 + N
  9. If InMonth = 6 Then temp = InDay + 31 + 28 + 31 + 30 + 31 + N
  10. If InMonth = 7 Then temp = InDay + 31 + 28 + 31 + 30 + 31 + 30 + N
  11. If InMonth = 8 Then temp = InDay + 31 + 28 + 31 + 30 + 31 + 30 + 31 + N
  12. If InMonth = 9 Then temp = InDay + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + N
  13. If InMonth = 10 Then temp = InDay + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + N
  14. If InMonth = 11 Then temp = InDay + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + N
  15. If InMonth = 12 Then temp = InDay + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + N
  16. GetLongFromData = temp
  17. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement