As a greeting,
安安 originated on Taiwanese BBS forums (PTT) in the 2000s. It's neutral about time of day — a feature, since you don't know when someone will read your post. In mainland chats it reads as cute or slightly Taiwan-flavored. Distinct usage:
安安 also serves as an affectionate reduplicated nickname (an + an) for kids and pets.