Former Vice President Joe Biden encouraged students not to spend their time fighting battles online.

Former Vice President Joe Biden gave assurances Sunday that the country's current divisiveness brought on by a presidential election that "churned up some of the ugliest realities'' of society will be temporary.

Biden told graduating seniors at Colby College to resist the impulse to throw up their hands after an election that played to society's "baser instincts.''

"It's time for America to get up. It's time to regain our sense of unity and purpose. It's time for us to restart realising who in God's name we are,'' he said during a sunny commencement address on the library lawn.

REUTERS Biden told graduating students at Morgan State University to tackle the challenges facing their generation.

The Democrat who served two terms alongside President Barack Obama expressed his own disbelief in the state of affairs.

READ MORE:

* The Rock, Tom Hanks joke about 2020 election

* Is Trump truly in crisis, or is it just a media beatup?

* CNN host snaps over Trump



"This past election cycle churned up some of the ugliest realities in our country. Civilised discourse and real debate gave way to the coarsest rhetoric and stoking of our darkest emotions,'' he said.

But he said the corrosive politics and us-against-them populism won't be permanent. "I assure you it's temporary. I assure you it's transitory. The American people will not sustain this attitude,'' he said.

He encouraged the 480 graduates from 36 states and 42 countries to resist the temptation to retreat into their own bubbles, engaging in a comfortable lifestyle and surrounding themselves by people with similar viewpoints.

Instead, he encouraged them to get out and take risks, to treat others with dignity, and to build bonds of empathy with others.

"Life can't be lived in a self-referential, self-reinforcing, self-righteous echo chamber we build for ourselves online. Living on screens encourages shallow and antiseptic relationships that make it easy to reduce others to stereotypes, to write another human being off as a bad person,'' he said.

Biden never mentioned Republican President Donald Trump by name but he came close when he talked about standing up to sexual harassment and sexual violence.

He made a reference to so-called sexually charged locker room conversations - referencing Trump's downplaying of lewd remarks as "locker room talk'' - before telling the group: "It doesn't go on like someone said it does.''