react-code-dataset / wp-calypso /packages /domains-table /src /utils /is-recently-registered.ts
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
253 Bytes
import moment from 'moment';
export function isRecentlyRegistered( registrationDate: string, numberOfMinutes = 30 ) {
return (
registrationDate &&
moment.utc( registrationDate ).isAfter( moment.utc().subtract( numberOfMinutes, 'minutes' ) )
);
}