Difference between revisions of "Function for Current Week of Month"

Jump to navigation Jump to search
m
imported>Lisselli
(added page for getting the current week of a month.)
 
imported>Lisselli
 
Line 6: Line 6:
<source lang="papyrus">
<source lang="papyrus">
Int Function GetCurrentWeekOfMonth(Int aiCurrentDay)
Int Function GetCurrentWeekOfMonth(Int aiCurrentDay)
     return (aiCurrentDay / 7) + 1
     return (aiCurrentDay / 7) + 1 as int
EndFunction
EndFunction
</source>
</source>
Anonymous user

Navigation menu