I think you are confusing this with automatic revalidation of US
the 30 day rule applies to visitors(US F/H/J visa holders) to canada who wish to return to US.
US green card holders do not require a visa to enter Canada, and it has nothing to do with how long you are staying there.